CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9

Threaded View

  1. #1
    Join Date
    Sep 2003
    Posts
    280

    Create two window with the same toolbar,but only one window's toolbar enable.

    Hello,
    I create two window with the same toolbar:
    Code:
    // ********************************************************
    // INITIALIZATION
    // ********************************************************
    int WINAPI WinMain (HINSTANCE hInst, HINSTANCE hPrevInst,
                        PSTR szCmdLine, int iCmdShow)
    {
    	MSG	msg ;
    	HWND 	hMainWindow1,hMainWindow2 ;
    
    	if(!Register(hInst))
    		return FALSE ;
    
    	// create the main window
    	hMainWindow1 = Create(hInst, iCmdShow) ;
    	hMainWindow2 = Create(hInst, iCmdShow) ;
    	if(!hMainWindow1)
    		return FALSE ;
    	if(!hMainWindow2)
    		return FALSE ;
    
    
    	while(GetMessage(&msg, NULL, 0, 0)){
            if(!IsDialogMessage(hDlgFrameRate, &msg)){
                TranslateMessage (&msg) ;
                DispatchMessage (&msg) ;
            }
        }
    
        return msg.wParam ;
    }
    But the second window 's toolbar is not enabled.
    When you execute the program,you will [File]->[Open]:Select the qcif sequence.
    The qcif sequence could be download following:
    http://trace.eas.asu.edu/yuv/qcif.html
    After the two window open the qcif sequence,i find the only one winodw 's toolbar is enabled.But i would like to enable two window's toolbars.
    How do I to modify???
    ---
    The whole project is attacted.
    Attached Images Attached Images
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured