⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 simple.c

📁 AppWizard has created a WCEDialogWiz DLL for you. This DLL is the starting point for writing your c
💻 C
字号:
/*simplest CE program possible -- a dialog with no controls at all...*/#include <windows.h>#include <tchar.h> //if you're using strings of any kind#include "resource.h" //auto-created header courtesy of MS Dev StudioBOOL CALLBACK DlgProc (HWND, UINT, WPARAM, LPARAM) ;//-------------------------------------------------------------------int WINAPI wWinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,                     LPTSTR lpszCmdLine, int cmdShow)       {     DialogBox ((HANDLE) hInstance, MAKEINTRESOURCE(IDD_DIALOG1), NULL, (DLGPROC)DlgProc);     return 0 ;}//-------------------------------------------------------------------BOOL CALLBACK DlgProc (HWND hwnd, UINT mMsg, WPARAM wParam, LPARAM lParam) {     switch (mMsg)     {          case WM_INITDIALOG:          {               return TRUE;          }          case WM_CTLCOLORDLG:          {               SetBkColor((HDC)wParam, LTGRAY_BRUSH);			   return FALSE; //solves occasional strange painting bug          }                    case WM_COMMAND:          {               switch(LOWORD(wParam))               {                    case IDCANCEL:                    case IDOK:                    {                         EndDialog(hwnd, 0);                         return TRUE;                    }               }          }          default:               return FALSE;     }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -