1234567891011121314
case WM_CREATE: { HWND hSt1= CreateWindowEx( WS_EX_CLIENTEDGE, _T("STATIC"), _T(" "), SS_LEFT|WS_CHILD|WS_VISIBLE, 30, 30, 100, 100, hwnd, (HMENU)IDC_STATIC1, GetModuleHandle(NULL), NULL); if(hSt1 == NULL){MessageBox(hwnd, _T("Could not create static control."), _T("Error"), MB_OK | MB_ICONERROR);}