《C/C++程序员实用大全》配套代码,适用初学C++的人员。

源代码在线查看: queue_status.cpp

软件大小: 608 K
上传用户: yyyz
关键词: 程序员 代码
下载地址: 免注册下载 普通下载 VIP

相关代码

				#include 
				
				// Windows message procedure.
				LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
				{
				    switch (uMsg)
				    {
				            case WM_COMMAND:       /* process menu items */
				                    switch ( LOWORD( wParam )  )
				                    {
				                        case IDM_TEST:  // force a paint to display screen.
				                        {
				                            TCHAR szBuffer[128];
				                            // Show the desktop.
				                            HDESK hDesktopObject = GetThreadDesktop( GetCurrentThreadId( ) );
				                            wsprintf( szBuffer, "Desktop Object is %x", hDesktopObject );
				                            MessageBox( hWnd, szBuffer, "GetThreadDesktop()", MB_OK );
				                        }
				                        break;
				                        case IDM_EXIT:
				                              DestroyWindow( hWnd );
				                              break;
				                    }
				                    break;
				
				           case WM_DESTROY:
				                    PostQuitMessage( 0 );
				                    break;
				           default:
				                 return (DefWindowProc(hWnd, uMsg, wParam, lParam));
				    }
				    return (NULL);
				}			

相关资源