NsDialogs UserData: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
(New page: == 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-friend...) |
(→Header: last "define" -> "!define") |
||
(One intermediate revision by one other user not shown) | |||
Line 14: | Line 14: | ||
Pop ${outvar} | Pop ${outvar} | ||
!macroend | !macroend | ||
!define NSD_GetUserData `!insertmacro NSD_GetUserData` | |||
</highlight-nsis> | |||
== Usage == | |||
<highlight-nsis> | |||
${NSD_SetUserData} <hwnd> <data> | |||
${NSD_GetUserData} <hwnd> <outvar> | |||
</highlight-nsis> | </highlight-nsis> | ||
[[Category:Headers]] [[Category:Code Examples]] [[Category:nsDialogs Examples]] | [[Category:Headers]] [[Category:Code Examples]] [[Category:nsDialogs Examples]] |
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>