Try this...

PHP Code:
#include <windows.h>

int fwSizeType=0;
int nWidth=0;
int nHeight=0;

LRESULT CALLBACK WndProcHWND hWndUINT uMsgWPARAM wParamLPARAM lParam )
{        
//Run through messages that window receives
   
switch (uMsg)
    {

      case 
WM_SIZE:

              
fwSizeType wParam;      // resizing flag 
              
nWidth LOWORD(lParam);  // width of client area 
              
nHeight HIWORD(lParam); // height of client area 
 
              
MessageBox(hWnd"You resized""Resize"MB_OK MB_ICONINFORMATION);    
                


              break;
      
      case 
WM_DESTROY:
        
                
              
PostQuitMessage(0);
              
              break;
      
      default:
            return(
DefWindowProc(hWnduMsgwParamlParam));
   }

   return(
0L);
}


int APIENTRY WinMain(HINSTANCE hInstanceHINSTANCE hPrevInstance,
                     
LPTSTR lpCmdLineint nCmdShow)
{    
//Create the Window
   
MSG      msg;
   
HWND     hWnd
   
WNDCLASS wc;

   
wc.style         CS_HREDRAW CS_VREDRAW;
   
wc.lpfnWndProc   = (WNDPROC)WndProc;       
   
wc.cbClsExtra    0;                      
   
wc.cbWndExtra    0;                      
   
wc.hInstance     hInstance;              
   
wc.hIcon         NULL
   
wc.hCursor       LoadCursor(NULLIDC_ARROW);
   
wc.hbrBackground = (HBRUSH)(GRAY_BRUSH-1);
   
wc.lpszMenuName  "TEST";              
   
wc.lpszClassName "TEST";              

   if (!
RegisterClass(&wc))
      return(
0L);

   

   
hWnd CreateWindow("TEST"
                       
"TEST",    
                       
DS_CENTER WS_OVERLAPPEDWINDOW
                       
1010750500
                       
NULL,              
                       
NULL,              
                       
hInstance,         
                       
NULL);

   

   
ShowWindow(hWndnCmdShow); 
   
UpdateWindow(hWnd);        
   
   
   while (
GetMessage(&msgNULL00))   
     {
       
TranslateMessage(&msg); 
       
DispatchMessage(&msg);  
     }

   return(
msg.wParam);