windows程序设计里面的时钟 是程序直接画出来的 太强了
梅尚程荀
马谭杨奚
// Specify the size void yrjd_OnSize(HWND hwnd, UINT state, int cx, int cy) { ; }在菜单项里能显示HWND HINSTANCE 和 id 的值
// Handle WM_COMMAND void yrjd_OnCommand(HWND hWnd, int id, HWND hWndCtl, UINT codeNotify) { char s[100]; if (id == CM_CONSOLE) { AllocConsole(); InitStdOut(); ClrScr(GOLDBLUE); WriteXY(1, 1, "Console status report"); sprintf(s, "HWND %x HINSTANCE %x ID %d", hWnd, hInstance, id); BlankLine(2); WriteXY(1, 3, s); BlankLine(4); WriteXY(1, 5, "Any key to close"); WaitForKeyPress(); FreeConsole(); } }那我想通过它显示OnSize的参数如cx cy 怎么弄?