Win 32プログラミング---フォームにボタンを追加


//1.      WindProcedure,    WndProc  
//2.    HWND hwndButton    
//3. switch(Msg)  case WM_CREATE:           
hwndButton=CreateWindow(TEXT("button"),//   :button  
						TEXT("anniu"),//          
						WS_CHILD | WS_VISIBLE,
						0,0,20,20,
						hWnd,(HMENU)0,
						((LPCREATESTRUCT)lParam)->hInstance,NULL);
//4.      

/*  :   CreateWindow()                                                                                                       HWND CreateWindow(   LPCTSTR lpClassName,   LPCTSTR lpWindowName, 
  DWORD dwStyle,   int x,   int y,   int nWidth,   int nHeight, 
  HWND hWndParent,   HMENU hMenu,   HANDLE hInstance,   PVOID lpParam ); */