Search
 
SCRIPT & CODE EXAMPLE
 

CPP

viewlist exaple win32

// CreateListView: Creates a list-view control in report view.
// Returns the handle to the new control
// TO DO:  The calling procedure should determine whether the handle is NULL, in case 
// of an error in creation.
//
// HINST hInst: The global handle to the applicadtion instance.
// HWND  hWndParent: The handle to the control's parent window. 
//
HWND CreateListView (HWND hwndParent) 
{
    INITCOMMONCONTROLSEX icex;           // Structure for control initialization.
    icex.dwICC = ICC_LISTVIEW_CLASSES;
    InitCommonControlsEx(&icex);

    RECT rcClient;                       // The parent window's client area.

    GetClientRect (hwndParent, &rcClient); 

    // Create the list-view window in report view with label editing enabled.
    HWND hWndListView = CreateWindow(WC_LISTVIEW, 
                                     L"",
                                     WS_CHILD | LVS_REPORT | LVS_EDITLABELS,
                                     0, 0,
                                     rcClient.right - rcClient.left,
                                     rcClient.bottom - rcClient.top,
                                     hwndParent,
                                     (HMENU)IDM_CODE_SAMPLES,
                                     g_hInst,
                                     NULL); 

    return (hWndListView);
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: pimpl c++ 
Cpp :: second smallest element in array using one loop 
Cpp :: TCA9548 I2CScanner Arduino 
Cpp :: turn it codechef solution in c++ 
Cpp :: tu hi hai aashiqui song lyrics 
Cpp :: multi variable assignment cpp 
Cpp :: sjfoajf;klsjflasdkfjk;lasjfjajkf;dslafjdjalkkkjakkkkkkkkkkkkkkkkfaWZdfbhjkkkk gauds 
Cpp :: sinh nhi phan c++ 
Cpp :: How to execute a command and get return code stdout and stderr of command in C++ 
Cpp :: powershell script query mssql windows authentication 
Cpp :: facade pattern C++ code 
Cpp :: C++ Converting Celsius to Kelvin 
Cpp :: c/c++ pointers 
Cpp :: Buy 2 Get 1 Free codechef solution in c++ 
Cpp :: how to get max grade c++ 
Cpp :: how to find the sum of elements in a stack in cpp 
Cpp :: libraries required for gaming in c++ 
Cpp :: copying a file to an array and sorting 
Cpp :: second smallest element using single loop 
Cpp :: c++ start thread later 
Cpp :: The Three Topics codechef solution in c++ 
Cpp :: two dimensional matrix using oops concept 
Cpp :: How to clear keyboard buffer c++ 
Cpp :: c++ linker input and output 
Cpp :: c++ hsl to rgb integer 
Cpp :: sprintf add two xeroes for a float number 
Cpp :: run c++ files on chrome book 
Cpp :: frac{2}{5}MR^2 typed in c++ 
Cpp :: check if an item is in a vector c++ 
Cpp :: beecrowd problem 1001 solution 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =