NsDialogs UserData: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
No edit summary |
(→Header: last "define" -> "!define") |
||
Line 14: | Line 14: | ||
Pop ${outvar} | Pop ${outvar} | ||
!macroend | !macroend | ||
define NSD_GetUserData `!insertmacro NSD_GetUserData` | !define NSD_GetUserData `!insertmacro NSD_GetUserData` | ||
</highlight-nsis> | </highlight-nsis> | ||
Latest revision as of 11:06, 13 April 2009
Description
This header is an extension to the existing nsDialogs.nsh header file, and adds the ability to use the UserData commands of the nsDialogs plugin with the more user-friendly ${NSD_*} syntax.
Header
This header is very small and is presented here directly:
!macro NSD_SetUserData hwnd data nsDialogs::SetUserData ${hwnd} ${data} !macroend !define NSD_SetUserData `!insertmacro NSD_SetUserData` !macro NSD_GetUserData hwnd outvar nsDialogs::GetUserData ${hwnd} Pop ${outvar} !macroend !define NSD_GetUserData `!insertmacro NSD_GetUserData`
Usage
${NSD_SetUserData} <hwnd> <data> ${NSD_GetUserData} <hwnd> <outvar>