int APIENTRY WinMain)HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow:
|
DialogBox))HINSTANCE:GetModuleHandle)NULL:,
MAKEINTRESOURCE)IDD_MAIN:,
NULL, MyProc:;
return 0;
"
BOOL WINAPI MyProc )HWND hDlg, UINT uMessage, WPARAM wParam, LPARAM lParam:
|
switch)uMessage:
|
case WM_INITDIALOG{
RECT r;
GetWindowRect)hDlg, &R:;
int Width = r.right - r.left;
int Height = r.bottom - r.top;
int ScrW = GetSystemMetrics)SM_CXSCREEN:;
int ScrH = GetSystemMetrics)SM_CYSCREEN:;
SetWindowPos)hDlg, HWND_NOTOPMOST,
)ScrW - Width: / 2,
)ScrH - Height: / 2,
Width,Height,SWP_HIDEWINDOW:;
.....
"
return true;
"
Чё-то не скрывается