1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
case IDC_ABOUT_BUTTON:
{
HWND about = CreateWindowEx( WS_EX_TOPMOST,
szWindowClass, //I know this is the Parent window, and it displays a copy of that window.
L"About",
WS_POPUP,
150, 150,// not yet set correctly
200, 200,// just testing until I get the correct window
hWnd, NULL,
hInst, NULL );
if( ! about )
{
MessageBox( hWnd, L"Error creating window\nPop-Up", L"Error", MB_ICONEXCLAMATION );
PostQuitMessage(0);
}
ShowWindow( about, SW_SHOW );
UpdateWindow( about );
break;
}
|