µÚÆßÕ¡¡µ¯³öʽ´°ÌåÓë×Ó´°Ìå
¡¡¡¡ÎÒÃÇÌÖÂÛÈýÖÖ´°Ì壬ËüÃÇ·Ö±ðÊÇ¡°Öصþʽ´°Ì塱(overlapped window)¡°µ¯³öʽ´°Ì塱(popup window)
Óë¡°×Ó´°Ì塱(child window)¡£
´°Ìå·ç¸ñ
1. WS_OVERLAPPED
2. WS_OVERLAPPEDWINDOW
3. WS_POPUP
4. WS_POPUPWINDOW
5. WS_CHILD
6. WS_CHILDWINDOW
¡¡ÀûÓôøÓÐWINDOW´°Ìå·ç¸ñ½¨Á¢µÄ´°Ì壬һ°ã¾ßÓнÏΪÍ걸µÄ´°ÌåÒªËØ£»
¡¡Ö÷´°ÌåÒ»°ã²ÉÓòãµþʽ(WS_OVERLAPPED)´°Ìå·ç¸ñ£»
¡¡×Ó´°ÌåÒ»°ã²ÉÓÃ×Ó´°Ìå(WS_CHILD)·ç¸ñ»òµ¯³öʽ´°Ìå(WS_POPUP)·ç¸ñ;
¡¡ÀûÓÃ×Ó´°Ìå(WS_CHILD)·ç¸ñ½¨Á¢µÄ×Ó´°ÌåÖ»ÄÜÔÚÆä¸¸´°ÌåµÄ¿Í»§ÇøÄÚ;
¡¡ÀûÓõ¯³öʽ´°Ìå(WS_POPUP)·ç¸ñ»ò²ãµþʽ(WS_OVERLAPPED)´°Ìå·ç¸ñ½¨Á¢µÄ×Ó´°Ìå¿ÉÒÔ×Ó×óÃæÉÏÈÎÒâÒÆ¶¯¡£
Ïà¹Øº¯Êý
Ò»£®SetWindowText()º¯Êý
1.¹¦ÄÜ£º
ÓÃÓÚÉèÖô°Ìå±êÌâÌõ±êÌâ¡£
2.º¯ÊýÉùÃ÷£º
BOOL SetWindowText(HWND hWnd,
LPCTSTR lpString);
3.²ÎÊý£º
hWnd£º ´°Ìå¾ä±ú£»
lpString£ºÖ¸Ïò±êÌâ×Ö·û´®Ö¸Õë¡£
4.·µ»ØÖµ£º
Èç¹û³É¹¦£¬·µ»ØTRUE£¬·ñÔò·µ»ØFALSE¡£
¶þ£®wsprintf()º¯Êý
1.¹¦ÄÜ£º
ÓÃÓÚÄÚ²¿Îļþд²Ù×÷¡£
2.º¯ÊýÉùÃ÷£º
int wsprintf(LPTSTR lpOut,
LPCTSTR lpFmt,
...);
3.²ÎÊý£º
lpOut£ºÄÚ²¿ÎļþÖ¸Õ룻
lpFmt£º¿ÉÊÇ˵Ã÷×Ö·û´®£»
...£º ±äÁ¿±í¡£
4.·µ»ØÖµ£º Èç¹û³É¹¦£¬·µ»ØÄÚ²¿Îļþ³¤¶È£¬·ñÔò0¡£
µ¯³öʽ´°ÌåÓë×Ó´°ÌåʵÀý
Ò»£®¶à´°ÌåʵÀý
#include <windows.h>
HWND hWnds[8];
int WINAPI WinMain(HINSTANCE,
HINSTANCE,LPSTR,int);
LRESULT CALLBACK WndProc(HWND,UINT,
WPARAM,LPARAM);
int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nCmdShow)
{
¡¡¡¡WNDCLASSEX wndclass;
¡¡¡¡wndclass.cbSize = sizeof(WNDCLASSEX);
¡¡¡¡wndclass.style = CS_HREDRAW|CS_VREDRAW;
¡¡¡¡wndclass.lpfnWndProc = (WNDPROC)WndProc;
¡¡¡¡wndclass.cbClsExtra = 0;
¡¡¡¡wndclass.cbWndExtra = 0;
¡¡¡¡wndclass.hInstance = hInstance;
¡¡¡¡wndclass.hIcon = LoadIcon(NULL,(LPCTSTR)IDI_APPLICATION);
¡¡¡¡wndclass.hCursor = LoadCursor(NULL,IDC_ARROW);
¡¡¡¡wndclass.hbrBackground = (HBRUSH)COLOR_WINDOW;
¡¡¡¡wndclass.lpszMenuName = NULL;
¡¡¡¡wndclass.lpszClassName = "WindowClass";
¡¡¡¡wndclass.hIconSm = LoadIcon(NULL,(LPCTSTR)IDI_APPLICATION);
¡¡¡¡if(!RegisterClassEx(&wndclass)) return FALSE;
¡¡¡¡for(int i=0;i<8;i++)
¡¡¡¡{
¡¡¡¡¡¡¡¡hWnds[i] = CreateWindowEx(NULL, ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡"WindowClass",
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡NULL,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡WS_OVERLAPPEDWINDOW,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡CW_USEDEFAULT,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡CW_USEDEFAULT,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡CW_USEDEFAULT,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡CW_USEDEFAULT,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡NULL,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡NULL,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡hInstance,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡NULL);
¡¡¡¡¡¡¡¡if(!hWnds[i]) return FALSE;
¡¡¡¡¡¡¡¡char szBuffer[30];
¡¡¡¡¡¡¡¡wsprintf(szBuffer,"Window Number %d",i);
¡¡¡¡¡¡¡¡SetWindowText(hWnds[i],szBuffer);
¡¡¡¡¡¡¡¡ShowWindow(hWnds[i], nCmdShow);
¡¡¡¡¡¡¡¡UpdateWindow(hWnds[i]);
¡¡¡¡}
¡¡¡¡MSG msg;
¡¡¡¡while(GetMessage(&msg, NULL, 0, 0))
¡¡¡¡{
¡¡¡¡¡¡¡¡TranslateMessage(&msg);
¡¡¡¡¡¡¡¡DispatchMessage(&msg);
¡¡¡¡}
¡¡¡¡return msg.wParam;
}
LRESULT CALLBACK WndProc(HWND hWnd,UINT message,WPARAM wParam,LPARAM lParam)
{
¡¡¡¡switch(message)
¡¡¡¡{
¡¡¡¡¡¡¡¡case WM_DESTROY:
¡¡¡¡¡¡¡¡if(hWnd==hWnds[0]) PostQuitMessage(0);
¡¡¡¡¡¡¡¡break;
¡¡¡¡¡¡¡¡default:
¡¡¡¡¡¡¡¡return DefWindowProc(hWnd,message,wParam,lParam);
¡¡¡¡}
¡¡¡¡return 0;
}
¶þ£®µ¯³öʽ´°ÌåʵÀý
#include <windows.h>
int WINAPI WinMain(HINSTANCE,HINSTANCE,LPSTR,int);
LRESULT CALLBACK PopupWndProc(HWND,UINT,WPARAM,LPARAM);
int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nCmdShow)
{
¡¡¡¡WNDCLASSEX wndclass;
¡¡¡¡wndclass.cbSize = sizeof(WNDCLASSEX);
¡¡¡¡wndclass.style = CS_HREDRAW|CS_VREDRAW;
¡¡¡¡wndclass.lpfnWndProc = (WNDPROC)PopupWndProc;
¡¡¡¡wndclass.cbClsExtra = 0;
¡¡¡¡wndclass.cbWndExtra = 0;
¡¡¡¡wndclass.hInstance = hInstance;
¡¡¡¡wndclass.hIcon =
LoadIcon(NULL,(LPCTSTR)IDI_APPLICATION);
¡¡¡¡wndclass.hCursor = LoadCursor(NULL,IDC_CROSS);
¡¡¡¡wndclass.hbrBackground = (HBRUSH)COLOR_WINDOW;
¡¡¡¡wndclass.lpszMenuName = NULL;
¡¡¡¡wndclass.lpszClassName = "PopupWindowClass";
¡¡¡¡wndclass.hIconSm = LoadIcon(NULL,(LPCTSTR)IDI_APPLICATION);
¡¡¡¡if(!RegisterClassEx(&wndclass)) return FALSE;
¡¡¡¡HWND hWnd = CreateWindowEx( NULL,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡"PopupWindowClass",
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡NULL,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡WS_POPUP,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡100,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡100,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡300,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡200,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡NULL,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡NULL,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡hInstance,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡NULL);
¡¡¡¡if(!hWnd) return FALSE;
¡¡¡¡ShowWindow(hWnd, nCmdShow);
¡¡¡¡UpdateWindow(hWnd);
¡¡¡¡MSG msg;
¡¡¡¡ while(GetMessage(&msg,NULL,0,0))
¡¡¡¡{
¡¡¡¡¡¡¡¡TranslateMessage(&msg);
¡¡¡¡¡¡¡¡DispatchMessage(&msg);
¡¡¡¡}
¡¡¡¡return msg.wParam;
}
LRESULT CALLBACK PopupWndProc(HWND hWnd,UINT message,WPARAM wParam,LPARAM lParam)
{
¡¡¡¡switch(message)
¡¡¡¡{
¡¡¡¡¡¡¡¡case WM_DESTROY:
¡¡¡¡¡¡¡¡PostQuitMessage(0);
¡¡¡¡¡¡¡¡break;
¡¡¡¡¡¡¡¡default:
¡¡¡¡¡¡¡¡return DefWindowProc(hWnd, message, wParam, lParam);
¡¡¡¡}
¡¡¡¡return 0;
}
Èý£®×Ó´°ÌåʵÀý
#include <windows.h>
int WINAPI WinMain(HINSTANCE,HINSTANCE,LPSTR,int);
LRESULT CALLBACK ParentWndProc(HWND,UINT,WPARAM,LPARAM);
LRESULT CALLBACK ChildWndProc(HWND,UINT,WPARAM,LPARAM);
LRESULT CALLBACK PopupWndProc(HWND,UINT,WPARAM,LPARAM);
int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nCmdShow)
{
¡¡¡¡WNDCLASSEX wndclass;
¡¡¡¡wndclass.cbSize = sizeof(WNDCLASSEX);
¡¡¡¡wndclass.style =
CS_HREDRAW|CS_VREDRAW;
¡¡¡¡wndclass.lpfnWndProc =
(WNDPROC)ParentWndProc;
¡¡¡¡wndclass.cbClsExtra = 0;
¡¡¡¡wndclass.cbWndExtra = 0;
¡¡¡¡wndclass.hInstance = hInstance;
¡¡¡¡wndclass.hIcon = LoadIcon(NULL,(LPCTSTR)IDI_APPLICATION);
¡¡¡¡wndclass.hCursor = LoadCursor(NULL,IDC_ARROW);
¡¡¡¡wndclass.hbrBackground = (HBRUSH)COLOR_WINDOW;
¡¡¡¡wndclass.lpszMenuName = NULL;
¡¡¡¡wndclass.lpszClassName = "ParentWindowClass";
¡¡¡¡wndclass.hIconSm = LoadIcon(wndclass.hInstance,(LPCTSTR)IDI_APPLICATION);
¡¡¡¡if(!RegisterClassEx(&wndclass)) return FALSE;
¡¡¡¡wndclass.cbSize = sizeof(WNDCLASSEX);
¡¡¡¡wndclass.style = CS_HREDRAW|CS_VREDRAW;
¡¡¡¡wndclass.lpfnWndProc = (WNDPROC)ChildWndProc;
¡¡¡¡wndclass.cbClsExtra = 0;
¡¡¡¡wndclass.cbWndExtra = 0;
¡¡¡¡wndclass.hInstance = hInstance;
¡¡¡¡wndclass.hIcon = NULL;
¡¡¡¡wndclass.hCursor = LoadCursor(NULL,IDC_CROSS);
¡¡¡¡wndclass.hbrBackground = (HBRUSH)COLOR_WINDOW;
¡¡¡¡wndclass.lpszMenuName = NULL;
¡¡¡¡wndclass.lpszClassName = "ChildWindowClass";
¡¡¡¡wndclass.hIconSm = NULL;
¡¡¡¡return FALSE;
¡¡¡¡wndclass.cbSize = sizeof(WNDCLASSEX);
¡¡¡¡wndclass.style =
CS_HREDRAW|CS_VREDRAW;
¡¡¡¡wndclass.lpfnWndProc =
(WNDPROC)PopupWndProc;
¡¡¡¡wndclass.cbClsExtra = 0;
¡¡¡¡wndclass.cbWndExtra = 0;
¡¡¡¡wndclass.hInstance = hInstance;
¡¡¡¡wndclass.hIcon = NULL;
¡¡¡¡wndclass.hCursor = LoadCursor(NULL,IDC_CROSS);
¡¡¡¡wndclass.hbrBackground = (HBRUSH)COLOR_WINDOW;
¡¡¡¡wndclass.lpszMenuName = NULL;
¡¡¡¡wndclass.lpszClassName = "PopupWindowClass";
¡¡¡¡wndclass.hIconSm = NULL;
¡¡¡¡if(!RegisterClassEx(&wndclass)) return FALSE;
¡¡¡¡HWND hWndParent = CreateWindowEx( NULL,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡"ParentWindowClass",
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡"Parent Window",
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡WS_OVERLAPPEDWINDOW,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡100,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡100,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡530,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡300,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡NULL,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡NULL,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡hInstance,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡NULL);
¡¡¡¡if(!hWndParent) return FALSE;
¡¡¡¡ShowWindow(hWndParent, nCmdShow);
¡¡¡¡UpdateWindow(hWndParent);
¡¡¡¡HWND hWndChild = CreateWindowEx(NULL,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡"ChildWindowClass",
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡"Child Window with Parent",
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡WS_CHILDWINDOW|WS_CAPTION,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡110,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡150,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡250,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡200,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡hWndParent,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡NULL,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡hInstance,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡NULL);
¡¡¡¡if(!hWndChild) return FALSE;
¡¡¡¡ShowWindow(hWndChild, nCmdShow);
¡¡¡¡UpdateWindow(hWndChild);
¡¡¡¡HWND hWndPopup = CreateWindowEx(NULL,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡"PopupWindowClass",
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡"Popup Window without Parent",
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡WS_POPUPWINDOW|WS_CAPTION,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡370,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡150,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡250,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡200,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡NULL,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡NULL,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡hInstance,
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡NULL);
¡¡¡¡if(!hWndPopup) return FALSE;
¡¡¡¡ShowWindow(hWndPopup, nCmdShow);
¡¡¡¡UpdateWindow(hWndPopup);
¡¡¡¡MSG msg;
¡¡¡¡while(GetMessage(&msg, NULL, 0, 0))
¡¡¡¡{
¡¡¡¡¡¡¡¡TranslateMessage(&msg);
¡¡¡¡¡¡¡¡DispatchMessage(&msg);
¡¡¡¡}
¡¡¡¡return msg.wParam;
}
LRESULT CALLBACK ParentWndProc(HWND hWnd,UINT message,WPARAM wParam,LPARAM lParam)
{
¡¡¡¡switch(message)
¡¡¡¡{
¡¡¡¡¡¡¡¡case WM_DESTROY:
¡¡¡¡¡¡¡¡PostQuitMessage(0);
¡¡¡¡¡¡¡¡break;
¡¡¡¡¡¡¡¡default:
¡¡¡¡¡¡¡¡return DefWindowProc(hWnd,message,wParam,lParam);
¡¡¡¡}
¡¡¡¡return 0;
}
LRESULT CALLBACK ChildWndProc(HWND hWnd,UINT message,WPARAM wParam,LPARAM lParam)
{
¡¡¡¡return DefWindowProc(hWnd,message,wParam,lParam);
}
LRESULT CALLBACK PopupWndProc(HWND hWnd,UINT message,WPARAM wParam,LPARAM lParam)
{
¡¡¡¡return DefWindowProc(hWnd,message,wParam,lParam);
}
|