随笔分类 - win32
摘要:必须引入此头文件#include #pragma comment(lib, "WINMM.LIB") 1 /*------------------------------------------------------------ 2 HELLOWIN.C -- Displays "Hello, Windows 98!" in client area 3 (c) Charles Petzold, 1998 4 ------------------------------------------------------------*/ 5 6 #in...
阅读全文
摘要:有没有win32编程因为打印变量调试程序而头疼呢.方法二的函数完全类似printf.非常完美.方法一:不带参数输出如printf("hello world");OutputDebugString("debug"); 1 case WM_COMMAND: 2 wmId = LOWORD(wParam); 3 wmEvent = HIWORD(wParam); 4 // Parse the menu selections: 5 switch (wmId) 6 { 7 case IDS_BTN1: 8 OutputDebugString("1&quo
阅读全文
摘要:Q:clear listboxhi i am working in VC++ 6 using Win32 App. .............tell me how to clear the listboxRe: clear listboxSend the listbox a LB_RESETCONTENT message. Code: SendMessage(handleListbox, LB_RESETCONTENT, 0, 0);reference:http://forums.codeguru.com/showthread.php?447176-clear-listbox&p=1
阅读全文

浙公网安备 33010602011771号