So, I have a Listbox problem where the entries I want it to show are not being displayed in Visual C++ 6.
The code is as follows.
switch (m) {
    case WM_INITDIALOG: //To initiate the dialog box
    {
        HICON hicon = (HICON__ *)LoadImageW(GetModuleHandleW(NULL), MAKEINTRESOURCEW(IDI_ICONMAIN), IMAGE_ICON, 0, 0, LR_DEFAULTCOLOR | LR_DEFAULTSIZE);
        SendMessageW(h, WM_SETICON, ICON_BIG, (long)hicon);
        RECT Rect;
        ::GetWindowRect(h, &Rect);
        ::SetWindowPos(h, HWND_TOPMOST, (::GetSystemMetrics(SM_CXSCREEN)/2 - ((Rect.right - Rect.left)/2)), (::GetSystemMetrics(SM_CYSCREEN)/2 - ((Rect.bottom - Rect.top)/2)), (Rect.right - Rect.left), (Rect.bottom - Rect.top), SWP_SHOWWINDOW);
        //Place items in listbox.
        const std::string StringArray[] = {"10", "20", "30", "40", "50", "60", "70"};
        SendMessage(h, LB_ADDSTRING, DROPDOWN1, (LPARAM)StringArray);
        return TRUE;
    }
 
     
    