WinMain simply calls
WinMain_Internal does the following:
- Initializes common controls.
ICC_LISTVIEW_CLASSES | ICC_PROGRESS_CLASS | ICC_TREEVIEW_CLASSES | ICC_BAR_CLASSES | ICC_UPDOWN_CLASS | ICC_USEREX_CLASSES | ICC_TAB_CLASSES | ICC_COOL_CLASSES | ICC_DATE_CLASSES | 0;
InitCC.dwSize = sizeof(INITCOMMONCONTROLSEX);
-1 is the standard return value for
DialogBox failure, so we use -2. Of course, defining error constants with more readable values is recommended.
- Although Ole32.lib is linked, only
VARIANT comparations and
BSTR manipulator are used. So,
OleInitialize call is not required.
- Not all of the
ICC_* constants are required for this sample. You may choose the appropriate set that fits your needs.
- The sample assumes the list view in report mode.
DialogBox to show our sample dialog.
The dialog has 4 handlers.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here