I would like to use the handle of CreateWindow in WM_CREATE outside of WM_CREATE to update the picture in the listbox but i get
error 1400 Invalid window handle.
Code:switch(uMsg) { case WM_CREATE: { hwndImage = CreateWindowEx(0, WC_LISTVIEW, TEXT(""), WS_CHILD | WS_VISIBLE, 0, 0, width, height, hwnd, NULL, (HMODULE) GetWindowLongPtr(hwnd, GWLP_HINSTANCE), NULL); hWnd_Image2 = hwndImage; ImageBox_SetImage(hwndImage, TEXT("D:\\1.jpg")); return 0; }



2Likes
LinkBack URL
About LinkBacks


