How to lock child window from resizing in MDI ? I am using WTL + MDI/Dialog framework. - CMDIFrameWindowImpl --- CMDIChildWindowImpl ----- CDialogImpl i tried to set-up window styles (below) on creating... but child window then freezing :/ and i can do nothing with it (move/minimize) Style to setup for not-resizing window: ~WS_THICKFRAME; ~WS_MAXIMIZEBOX; i have example, but it built on Document/View technology... http://www.thecodeproject.com/dialog/resizeformtofit.asp ---------------------------- never stop coding.
Mandalay
Posts
-
How to lock child window from resizing in MDI ? -
Toolbar with trucolor bitmap buttonsi do it only with editing atlframe.h i changed some code, if we are not in WIN_CE block [code] /* ATLASSERT(false); TBADDBITMAP tbab = { 0 }; tbab.hInst = hInst; tbab.nID = nResourceID; ::SendMessage(hWnd, TB_ADDBITMAP, nBmp, (LPARAM)&tbab); */ HBITMAP hBmp = LoadBitmap( hInst, MAKEINTRESOURCE(nResourceID) ); HIMAGELIST hImageList = ImageList_Create( pData->wWidth, pData->wWidth, ILC_COLOR32, pData->wItemCount, 0 ); ImageList_Add( hImageList, hBmp, (HBITMAP)NULL ); ::SendMessage(hWnd, TB_SETIMAGELIST, 0, (LPARAM)hImageList); [/code] ==================== maybe there is some other way ? :) ---------------------------- never stop coding.
-
Toolbar with trucolor bitmap buttonsActualy i have an error when toolbar.bmp have 256 or grater colors. WTL aplication just asserts on loading bitmap. how to create toolbar with "more colors", not with 16 color !? ---------------------------- never stop coding.
-
how to create multipane status bar in Dialog window ?actualy i have MDI app w/out doc/view arch. so i create views on DialogImpl base class CSearchView : public CDialogImpl, public CDialogResize, public CWinDataExchange --- Questions is,- how to create CMultiPaneStatusBarCtrl on dialog. & also i need auto-resize it with CDialogResize. also there is one problem what CDialogResize does not accepts CStatusBar because it is not a window! atlwin.h & atlctrls.h asserts on ::IsWindow(m_hWnd) so how-to ? ---------------------------- never stop coding.
-
CDialogResize does not draw CStatic properlyAuch... thanks :) i did not know about "transparent" ... ---------------------------- never stop coding.
-
CDialogResize does not draw CStatic properlyi have MDI app (whithout Doc/View), i have an FormView ( IDD_SEARCH_FORM ) on which i have CStatic control (standart group box) SearchView.h -------------- class CSearchView : public CDialogImpl, public CDialogResize actualy all is ok - all controls resized as needed except group box is not __repainted__, but __resized__ !! how to get it working ? ---------------------------- never stop coding.
-
W2k Lock Computer Hookno, just events, hook them, and do some action (with options : block, or not to block this windows message ).... mm ? ---------------------------- never stop coding.
-
W2k Lock Computer Hookhm.. jep. but i am not going to do bad things... just listen "Lock Computer/Unlock Computer" events, and for example - write it to Database. ---------------------------- never stop coding.
-
W2k Lock Computer HookHai there! i nead to create some stuff - hook, when user do "Lock Computer", and then my program(in tray) will do some actions, for example - get some URL. o smth else. ?? are there any examples?, or tutorials ?? thanks PS: sory for my english. ---------------------------- never stop coding.
-
MDI tutorial/linksi have buy many books about MFC.. but i can't find helpFULL information in them ... maybe somebody knows any GOOD links/ttorials about MDI framework programming, what i can simply download them and study at home ... !?!? PS: it's better if it wont be about document/view .... PPS : it is not enoughtwith examples on codeguru codeproject :P PPPS: sory for my ENG... ---------------------------- never stop coding.
-
Additional button on window's caption areai need help for creating additional button on windows's caption area (near minimize,maximize,close) for example, help, minimize to tray ... etc... also i mean - to create many buttons (not one :) ) somebody can explain, or just give some URLs where i can find out this examples .. PS : google doesn't help... and i can not find out it here .. PPS: sory for my ENG; ---------------------------- never stop coding.
-
irl like textoutput ..sorry, the topic is "irc like textoutput" ... nevermind .. ---------------------------- never stop coding.
-
irl like textoutput ..i know, i have posted this question some days ago ... but this example : CHARRANGE cr; cr.cpMax = LONG_MAX; cr.cpMin = LONG_MAX; richedit.SetSel( cr ); // move selection to the bottom richedit.ReplaceSel( (LPCSTR)string ); // insert your text // force the rich edit to scroll to the bottom richedit.SendMessage( SB_BOTTOM, NULL, NULL ); doesn't work correctly. (for richedit) Maybe anybody else knows, how ara many clients prints channel text (mIRC, Client, etc... ) it would be better give some examples (full sources of small exampl-programs) ... thanks ---------------------------- never stop coding.
-
mIRC channel textoutput .......thanx :) ---------------------------- never stop coding.
-
mIRC channel textoutput .......how create output text in richedit ctrl like mIRC channel textoutput ? I mean text scrolling from bottom side to upper side.... [ sorry for my english :) ] ---------------------------- never stop coding.
-
Maybe lame question ...Why sometimes vc++ couldn't find atlres.h ?? How to solve this problem !? :) ---------------------------- i am a beginner.
-
Where can I find the registry key for the path of the current WebBrowser / EmailReader?Hmm.. maybe this !? HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail ---------------------------- never stop coding.
-
Redirecting text to edit controlConsole is application , but application can create windows (: there are ( on this site ) some exapmles, how to create windows from console (: ---------------------------- my eng is bad, so am i .. (:
-
CFileDialog bug on W2k !?Yee .. a have just exception in debuger pane.... but program still works correctly and all vars are correctly written ... just when changing filter, this exception occures ... - when changing to old style dialog (win95), everything is OK !! ---------------------------- my eng is bad, so am i .. (:
-
CFileDialog bug on W2k !?Are you sure to do this !?? Is this OK for W2k !? (-: but i want to get app without any exceptions ... (: ---------------------------- my eng is bad, so am i .. (: