windows_programming_notes.nbk: Home | Index | Next Page: MapDialogRect | Previous Page: LVN_BEGINLABELEDIT
The MAKEINTRESOURCE macro converts an integer value to a resource type compatible with the resource-management functions. This macro is used in place of a string containing the name of the resource.
LPTSTR MAKEINTRESOURCE( WORD wInteger );
The return value is the specified value in the low-order word and zero in the high-order word.
The return value should be passed only to functions which explicitly indicate that they accept MAKEINTRESOURCE as a parameter. For example, the resource management functions allow the return value of MAKEINTRESOURCE to be passed as the lpType or lpName parameters.
windows_programming_notes.nbk: Home | Index | Next Page: MapDialogRect | Previous Page: LVN_BEGINLABELEDIT
Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time