2 Attachment(s)
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.