POSITION pos = GetFirstViewPosition(); while (pos != NULL) { CView* pView = GetNextView(pos); pView->UpdateWindow(); } if GetFirstViewPosition return a first pos.then GetNextView will return second pos view pointer. Am I right?
derek7
Posts
-
how to get cview or cdocment object pointer? -
what is internet development sdk?what dll or lib coresponding to the sdk? for example mfc lib is supplied in mfc42.lib or mfc42.dll.
-
what is different cdialog and cdialogbar?it seem no different between them, dialogbar is just no-title dialog. am I right? why do I need the dialogbar other than dialog?
-
how to get cview or cdocment object pointer?in MFC, I know doc and view is created in ProcessShellCommand with CSingleDocTemplate. but I wanna get current view pointer so that I can hide it by ShowWindow(getView(), SW_HIDE);
-
how to paint a bitmap on client?case WM_PAINT: hdc = BeginPaint (hwnd, &ps) ; hdcMem = CreateCompatibleDC (hdc) ; SelectObject (hdcMem, hBitmap) ; BitBlt (hdc, 0, 0, cx , cy, hdcMem, 0, 0, SRCCOPY) ; DeleteDC (hdcMem) ; EndPaint (hwnd, &ps) ; return 0 ; it is a way,but how to paint without memory device context? but SelectObject (hdc, hBitmap) does not put bitmap on screen.
-
which tool do more strictly check code than c++compiler.if I am not indicate a head file is a library header file, what wrong will arise?
-
which tool do more strictly check code than c++compiler.I read link document, dive into many options and disapear. could you give me some frequently used option? for example : detect all un-initialized variable or something good.
-
which tool do more strictly check code than c++compiler.good , do you have msn messenger? I wanna talk to you:)
-
which tool do more strictly check code than c++compiler.lint seem to be complex. it is commerical software.
-
how to see which macro was defined in a cpp unit?I do not know what is the macro name. it could be define at .h file in cpp you can not easily to search.
-
how to see which macro was defined in a cpp unit?which tool or switch work for it?
-
mfc42.dll < mfc42d.dllso debug version is large than retail. but did you see that? debug is smaller than retail.
-
MFCEndDialog
-
ProcessShellCommandwhy is CView and CDocumnet created in the function?? any relation among them?
-
mfc42.dll < mfc42d.dllmfc42.dll 2.1k mfc42d.dll 1.466k why? debug version should large than release version.
-
MFC71 has no import functionMFC71 depend many lib :msvcr71.dll kernel32.dll gdi32.dll etc... but I use depends.exe look mfc71 ,it no import function. why?
-
mfc CException classdeclaration in vc6 :virtual ~CException(); declaration in vc7 :virtual ~CException() = 0; try { if(nCount != sizeof(BITMAPFILEHEADER)) { throw new CException; } if(bmfh.bfType != 0x4d42) { throw new CException; } ................. } it work in vc6 ,it should pass compile but it should not pass link. but it all work in vc6.
-
why was exception not handle?#include class ccc { public: ccc(int i) { m_i = i; } int m_i; }; void f(bool b) throw( ccc ) { if(b) { throw new ccc(5); } } main() { try { f(1); } catch (ccc) { std::cout<<"catch call"; abort(); } } the catch not run;
-
how to find which lib is a function in?dumbin and depends only work for dll. how about static lib?
-
error handlesorry ,the question : which error handle is right and commmon?