I am using this code to successfully create a listview control in an SDI program. When I try to use the same code in an MDI program, I get the following error: Cannot find window class.
I have #include'd <commctrl.h> and am linking with comctl32.lib.
Any thoughts as to what I am doing wrong? Is there something different that needs to be done when using MDI?Code:hListView = CreateWindowEx(WS_EX_CLIENTEDGE, WC_LISTVIEW, NULL, WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL | LVS_REPORT |LVS_EDITLABELS, 25, 100, 475, 100, hWnd, (HMENU)LISTVIEW32, hInst, NULL);
Thanks in advance.



LinkBack URL
About LinkBacks


