问题描述
- 怎么用c语言实现mfc的listctrl控件?
-
怎么用c语言实现mfc的listctrl控件?
最好有代码 谢谢
解决方案
hInst = ((LPCREATESTRUCT)lParam) -> hInstance;
hMenu = GetMenu(hwnd);
InitCommonControls();
hList = CreateWindowEx(NULL, TEXT("SysListView32"), NULL,LVS_REPORT | WS_CHILD | WS_VISIBLE, 0, 0, 0, 0, hwnd, NULL, hInst,NULL);
InsertColumn();
SendMessage(hList, LVM_SETTEXTCOLOR, 0, RGB(255, 255, 255));
SendMessage(hList, LVM_SETBKCOLOR, 0, RGB(100, 100, 100));
SendMessage(hList, LVM_SETTEXTBKCOLOR, 0, RGB(0, 0, 0));
http://blog.csdn.net/fancw/article/details/6673317
解决方案二:
用win32 API好像可以,听说滴
解决方案三:
用win32api,CreateWindow() and ShowWindow().
时间: 2024-11-03 08:47:05