Added UpDown NSD control
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6907 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
f1b2f82242
commit
d4afa99b08
4 changed files with 142 additions and 222 deletions
|
@ -81,21 +81,19 @@ code
|
|||
</li>
|
||||
<li>ComboBox & DropList:
|
||||
<a href="#mref-cbaddstring">NSD_CB_AddString</a>,
|
||||
<a href="#mref-cbinsstring">NSD_CB_InsertString</a>,
|
||||
NSD_CB_PrependString, NSD_CB_AppendString, <a href="#mref-cbinsstring">NSD_CB_InsertString</a>,
|
||||
<a href="#mref-cbselectstring">NSD_CB_SelectString</a>,
|
||||
<a href="#mref-cbgetcount">NSD_CB_GetCount</a>,
|
||||
NSD_CB_PrependString, NSD_CB_AppendString
|
||||
<a href="#mref-cbgetcount">NSD_CB_GetCount</a>
|
||||
</li>
|
||||
<li>ListBox:
|
||||
<a href="#mref-lbaddstring">NSD_LB_AddString</a>,
|
||||
<a href="#mref-lbinsstring">NSD_LB_InsertString</a>,
|
||||
NSD_LB_PrependString, NSD_LB_AppendString, <a href="#mref-lbinsstring">NSD_LB_InsertString</a>,
|
||||
<a href="#mref-lbdelstring">NSD_LB_DelString</a>,
|
||||
<a href="#mref-lbdelitem">NSD_LB_DelItem</a>,
|
||||
<a href="#mref-lbclear">NSD_LB_Clear</a>,
|
||||
<a href="#mref-lbgetcount">NSD_LB_GetCount</a>,
|
||||
<a href="#mref-lbselectstring">NSD_LB_SelectString</a>,
|
||||
<a href="#mref-lbgetselection">NSD_LB_GetSelection</a>,
|
||||
NSD_LB_PrependString, NSD_LB_AppendString
|
||||
<a href="#mref-lbgetselection">NSD_LB_GetSelection</a>
|
||||
</li>
|
||||
<li>Animation:
|
||||
<a href="#mref-animopenfile">NSD_Anim_OpenFile</a>,
|
||||
|
@ -109,17 +107,27 @@ NSD_LB_PrependString, NSD_LB_AppendString
|
|||
<a href="#mref-tracksetrmax">NSD_TrackBar_SetRangeMax</a>,
|
||||
<a href="#mref-tracksetticfr">NSD_TrackBar_SetTicFreq</a>
|
||||
</li>
|
||||
<li>HotKey:
|
||||
<a href="#mref-hkgethk">NSD_HotKey_GetHotKey</a>, <a href="#mref-hksethk">NSD_HotKey_SetHotKey</a>
|
||||
<li>UpDown:
|
||||
<a href="#mref-udsetbuddy">NSD_UD_SetBuddy</a>,
|
||||
<a href="#mref-udgetpos">NSD_UD_GetPos</a>,
|
||||
<a href="#mref-udsetpos">NSD_UD_SetPos</a>,
|
||||
<a href="#mref-udsetpackedrange">NSD_UD_SetPackedRange</a>
|
||||
</li>
|
||||
<li>HotKey:
|
||||
<a href="#mref-hkgethk">NSD_HK_GetHotKey</a>, <a href="#mref-hksethk">NSD_HK_SetHotKey</a>
|
||||
</li>
|
||||
<li>Bitmap:
|
||||
<a href="#mref-setimage">NSD_SetImage</a>,
|
||||
<a href="#mref-setsimage">NSD_SetStretchedImage</a>,
|
||||
<a href="#mref-clearimage">NSD_ClearImage</a>,
|
||||
<a href="#mref-freeimage">NSD_FreeImage</a>
|
||||
</li>
|
||||
<li>Icon:
|
||||
<a href="#mref-seticon">NSD_SetIcon</a>,
|
||||
<a href="#mref-seticonfrominstaller">NSD_SetIconFromInstaller</a>,
|
||||
<a href="#mref-clearicon">NSD_ClearIcon</a>,
|
||||
<a href="#mref-freeicon">NSD_FreeIcon</a>
|
||||
</li>
|
||||
<li><a href="#mref-setimage">NSD_SetImage</a></li>
|
||||
<li><a href="#mref-setsimage">NSD_SetStretchedImage</a></li>
|
||||
<li><a href="#mref-seticon">NSD_SetIcon</a></li>
|
||||
<li><a href="#mref-seticonfrominstaller">NSD_SetIconFromInstaller</a></li>
|
||||
<li><a href="#mref-clearimage">NSD_ClearImage</a></li>
|
||||
<li><a href="#mref-clearicon">NSD_ClearIcon</a></li>
|
||||
<li><a href="#mref-freeimage">NSD_FreeImage</a></li>
|
||||
<li><a href="#mref-freeicon">NSD_FreeIcon</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#faq">FAQ</a></li>
|
||||
|
@ -147,9 +155,6 @@ XPStyle on
|
|||
Page instfiles
|
||||
|
||||
Section
|
||||
|
||||
DetailPrint "hello world"
|
||||
|
||||
SectionEnd</pre></blockquote>
|
||||
|
||||
<h3><a name="step-page"></a>Custom Page</h3>
|
||||
|
@ -168,9 +173,6 @@ Page instfiles
|
|||
FunctionEnd</b>
|
||||
|
||||
Section
|
||||
|
||||
DetailPrint "hello world"
|
||||
|
||||
SectionEnd</pre></blockquote>
|
||||
|
||||
<h3><a name="step-create"></a>Creating Page</h3>
|
||||
|
@ -205,9 +207,6 @@ Function nsDialogsPage
|
|||
FunctionEnd
|
||||
|
||||
Section
|
||||
|
||||
DetailPrint "hello world"
|
||||
|
||||
SectionEnd</pre></blockquote>
|
||||
|
||||
<h3><a name="step-show"></a>Showing Page</h3>
|
||||
|
@ -239,9 +238,6 @@ Function nsDialogsPage
|
|||
FunctionEnd
|
||||
|
||||
Section
|
||||
|
||||
DetailPrint "hello world"
|
||||
|
||||
SectionEnd</pre></blockquote>
|
||||
|
||||
<h3><a name="step-add"></a>Adding Controls</h3>
|
||||
|
@ -287,9 +283,6 @@ Function nsDialogsPage
|
|||
FunctionEnd
|
||||
|
||||
Section
|
||||
|
||||
DetailPrint "hello world"
|
||||
|
||||
SectionEnd</pre></blockquote>
|
||||
|
||||
<p>Available control types that can be created with <a href="#mref-create">${NSD_Create*}</a> are:
|
||||
|
@ -317,6 +310,7 @@ ProgressBar,
|
|||
Animation,
|
||||
HTrackBar,
|
||||
VTrackBar,
|
||||
UpDown,
|
||||
HotKey,
|
||||
IPAddress.
|
||||
</p>
|
||||
|
@ -369,9 +363,6 @@ FunctionEnd
|
|||
FunctionEnd</b>
|
||||
|
||||
Section
|
||||
|
||||
DetailPrint "hello world"
|
||||
|
||||
SectionEnd</pre></blockquote>
|
||||
|
||||
<h3><a name="step-notify"></a>Real-time Notification</h3>
|
||||
|
@ -439,9 +430,6 @@ FunctionEnd
|
|||
FunctionEnd</b>
|
||||
|
||||
Section
|
||||
|
||||
DetailPrint "hello world"
|
||||
|
||||
SectionEnd</pre></blockquote>
|
||||
|
||||
<h3><a name="step-memory"></a>Memory</h3>
|
||||
|
@ -512,149 +500,93 @@ Function nsDialogsPageLeave
|
|||
FunctionEnd
|
||||
|
||||
Section
|
||||
|
||||
DetailPrint "hello world"
|
||||
|
||||
SectionEnd</pre></blockquote>
|
||||
|
||||
<h2><a name="ref"></a>Function Reference</h2>
|
||||
|
||||
<h3><a name="ref-create"></a>Create</h3>
|
||||
|
||||
<p><code>nsDialogs::Create <i>rect</i></code></p>
|
||||
|
||||
<p>Creates a new dialog. <i>rect</i> specific the identifier of the control whose location will be mimiced. This should usually be 1018, which is control mimiced for creation of built-in pages. The Modern UI also has control 1044 for the welcome and the finish page.</p>
|
||||
|
||||
<p>Returns the new dialog's HWND on the stack or <i>error</i>.</p>
|
||||
|
||||
<h3><a name="ref-createcontrol"></a>CreateControl</h3>
|
||||
|
||||
<p><code>nsDialogs::CreateControl <i>class</i> <i>style</i> <i>extended_style</i> <i>x</i> <i>y</i> <i>width</i> <i>height</i> <i>text</i></code></p>
|
||||
|
||||
<p>Create a new control in the current dialog. A dialog must exist for this to work, so nsDialogs::Create must be called prior to this function.</p>
|
||||
|
||||
<p>Returns the new control's HWND on the stack or <i>error</i>.</p>
|
||||
|
||||
<h3><a name="ref-show"></a>Show</h3>
|
||||
|
||||
<p><code>nsDialogs::Show</code></p>
|
||||
|
||||
<p>Displays the page. Call this once finished with nsDialogs::Create, nsDialogs::CreateControl and the rest.</p>
|
||||
|
||||
<p>Returns nothing.</p>
|
||||
|
||||
<h3><a name="ref-selectfiledialog"></a>SelectFileDialog</h3>
|
||||
|
||||
<p><code>nsDialogs::SelectFileDialog <i>mode</i> <i>initial_selection</i> <i>filter</i></code></p>
|
||||
|
||||
<p>Displays a file selection dialog to the user. If <i>mode</i> is set to <i>save</i>, displays a file save dialog. If <i>mode</i> is set to <i>open</i>, displays a file open dialog. <i>filter</i> is a list of available file filters separated by pipes. If an empty string is passed, the default is used - <i>All Files|*.*</i>.</p>
|
||||
|
||||
<p><i>initial_selection</i> can be used to provide the user with a default file to look for and/or a default folder to look in. If <i>initial_selection</i> is empty no default filename will be provided for the user and the dialog will start in the current working directory. If <i>initial_selection</i> specifies just a filename, for example "test.exe", the dialog will be set up to look for a file called test.exe in the current working directory. If <i>initial_selection</i> specifies just a directory, for example "C:\Program Files", the dialog starts in the provided directory with no file name provided. If <i>initial_selection</i> specifies a directory and a filename, for example "C:\Windows\System32\calc.exe", the dialog will be set up to look for a file called calc.exe in the directory C:\Windows\System32.</p>
|
||||
|
||||
<p>Returns the selected file on the stack or an empty string if the user canceled the operation.</p>
|
||||
|
||||
<h3><a name="ref-selectfolderdialog"></a>SelectFolderDialog</h3>
|
||||
|
||||
<p><code>nsDialogs::SelectFolderDialog <i>title</i> <i>initial_selection</i></code></p>
|
||||
|
||||
<p>Displays a directory selection dialog to the user.</p>
|
||||
|
||||
<p>Returns the selected directory on the stack or "error" in case the user canceled the operation or an error occured.</p>
|
||||
|
||||
<h3><a name="ref-setrtl"></a>SetRTL</h3>
|
||||
|
||||
<p><code>nsDialogs::SetRTL <i>rtl_setting</i></code></p>
|
||||
|
||||
<p>Sets right-to-left mode on or off. If <i>rtl_setting</i> is 0, it's set to off. If <i>rtl_setting</i> is 1, it's set to on. This function must be called before any calls to nsDialogs::CreateControl.</p>
|
||||
|
||||
<p>Returns nothing.</p>
|
||||
|
||||
<h3><a name="ref-getuserdata"></a>GetUserData</h3>
|
||||
|
||||
<p><code>nsDialogs::GetUserData <i>control_HWND</i></code></p>
|
||||
|
||||
<p>Returns user data associated with the control on the stack. Use nsDialogs::SetUserData to set this data.</p>
|
||||
|
||||
<h3><a name="ref-setuserdata"></a>SetUserData</h3>
|
||||
|
||||
<p><code>nsDialogs::SetUserData <i>control_HWND</i> <i>data</i></code></p>
|
||||
|
||||
<p>Associates <i>data</i> with the control. Use nsDialogs::GetUserData to get this data.</p>
|
||||
|
||||
<p>Returns nothing.</p>
|
||||
|
||||
<h3><a name="ref-onback"></a>OnBack</h3>
|
||||
|
||||
<p><code>nsDialogs::OnBack <i>function_address</i></code></p>
|
||||
|
||||
<p>Sets the callback function for the Back button. This function will be called when the user clicks the back button. Call Abort in this function to prevent the user from going back to the last page.</p>
|
||||
|
||||
<p>Use GetFunctionAddress to get the address of the desired callback function.</p>
|
||||
|
||||
<p>Returns nothing.</p>
|
||||
|
||||
<h3><a name="ref-onchange"></a>OnChange</h3>
|
||||
|
||||
<p><code>nsDialogs::OnChange <i>control_HWND</i> <i>function_address</i></code></p>
|
||||
|
||||
<p>Sets a change notification callback function for the given control. Whenever the control changes, the function will be called and the control's HWND will be waiting on its stack.</p>
|
||||
|
||||
<p>Use GetFunctionAddress to get the address of the desired callback function.</p>
|
||||
|
||||
<p>Returns nothing.</p>
|
||||
|
||||
<h3><a name="ref-onclick"></a>OnClick</h3>
|
||||
|
||||
<p><code>nsDialogs::OnClick <i>control_HWND</i> <i>function_address</i></code></p>
|
||||
|
||||
<p>Sets a click notification callback function for the given control. Whenever the control is clicked, the function will be called and the control's HWND will be waiting on its stack.</p>
|
||||
|
||||
<p>Use GetFunctionAddress to get the address of the desired callback function.</p>
|
||||
|
||||
<p>Returns nothing.</p>
|
||||
|
||||
<h3><a name="ref-onnotify"></a>OnNotify</h3>
|
||||
|
||||
<p><code>nsDialogs::OnNotify <i>control_HWND</i> <i>function_address</i></code></p>
|
||||
|
||||
<p>Sets a notification callback function for the given control. Whenever the control receives the WM_NOTIFY message, the function will be called and the control's HWND, notification code and a pointer to the MNHDR structure will be waiting on its stack.</p>
|
||||
|
||||
<p>Use GetFunctionAddress to get the address of the desired callback function.</p>
|
||||
|
||||
<p>Returns nothing.</p>
|
||||
|
||||
<h3><a name="ref-createtimer"></a>CreateTimer</h3>
|
||||
|
||||
<p><code>nsDialogs::CreateTimer <i>function_address</i> <i>timer_interval</i></code></p>
|
||||
|
||||
<p>Sets a timer that'd call the callback function for the given control every in a constant interval. Interval times are specified in milliseconds.</p>
|
||||
|
||||
<p>Use GetFunctionAddress to get the address of the desired callback function.</p>
|
||||
|
||||
<p>Returns nothing.</p>
|
||||
|
||||
<h3><a name="ref-killtimer"></a>KillTimer</h3>
|
||||
|
||||
<p><code>nsDialogs::KillTimer <i>function_address</i></code></p>
|
||||
|
||||
<p>Kills a previously set timer.</p>
|
||||
|
||||
<p>Use GetFunctionAddress to get the address of the desired callback function.</p>
|
||||
|
||||
<p>Returns nothing.</p>
|
||||
|
||||
<h2><a name="mref"></a>Macro Reference</h2>
|
||||
|
||||
<p>nsDialogs.nsh contains a lot of macros that can make nsDialogs usage a lot easier. Below is a description of each of those macros including purpose, syntax, input and output.</p>
|
||||
|
||||
<h3><a name="mref-create"></a>NSD_Create*</h3>
|
||||
|
||||
<p><code>${NSD_Create*} <i>x</i> <i>y</i> <i>width</i> <i>height</i> <i>text</i></code></p>
|
||||
|
||||
<p>Create a new control in the current dialog. A dialog must exist for this to work, so nsDialogs::Create must be called prior to this function.</p>
|
||||
|
||||
<p>Available variants:</p>
|
||||
|
||||
<ul>
|
||||
<li>${NSD_CreateHLine}</li>
|
||||
<li>${NSD_CreateVLine}</li>
|
||||
|
@ -680,259 +612,189 @@ SectionEnd</pre></blockquote>
|
|||
<li>${NSD_CreateAnimation}</li>
|
||||
<li>${NSD_CreateHTrackBar}</li>
|
||||
<li>${NSD_CreateVTrackBar}</li>
|
||||
<li>${NSD_CreateUpDown}</li>
|
||||
<li>${NSD_CreateHotKey}</li>
|
||||
<li>${NSD_CreateIPAddress} <small>(Requires IE4)</small></li>
|
||||
</ul>
|
||||
|
||||
<p>Returns the new control's HWND on the stack or <i>error</i></p>
|
||||
|
||||
<h3><a name="mref-onback"></a>NSD_OnBack</h3>
|
||||
|
||||
<p><code>${NSD_OnBack} <i>function_name</i></code></p>
|
||||
|
||||
<p>See <a href="#ref-onback">OnBack</a> for more details.</p>
|
||||
|
||||
<p></p>
|
||||
|
||||
<h3><a name="mref-onchange"></a>NSD_OnChange</h3>
|
||||
|
||||
<p><code>${NSD_OnChange} <i>control_HWND</i> <i>function_name</i></code></p>
|
||||
|
||||
<p>See <a href="#ref-onchange">OnChange</a> for more details.</p>
|
||||
|
||||
<p>See <a href="#step-notify">Real-time Notification</a> for usage example.</p>
|
||||
|
||||
<h3><a name="mref-onclick"></a>NSD_OnClick</h3>
|
||||
|
||||
<p><code>${NSD_OnClick} <i>control_HWND</i> <i>function_name</i></code></p>
|
||||
|
||||
<p>See <a href="#ref-onclick">OnClick</a> for more details.</p>
|
||||
|
||||
<h3><a name="mref-onnotify"></a>NSD_OnNotify</h3>
|
||||
|
||||
<p><code>${NSD_OnNotify} <i>control_HWND</i> <i>function_name</i></code></p>
|
||||
|
||||
<p>See <a href="#ref-onnotify">OnNotify</a> for more details.</p>
|
||||
|
||||
<h3><a name="mref-setfocus"></a>NSD_SetFocus</h3>
|
||||
|
||||
<p><code>${NSD_SetFocus} <i>control_HWND</i></code></p>
|
||||
|
||||
<p>Sets focus to a control.</p>
|
||||
|
||||
<h3><a name="mref-createtimer"></a>NSD_CreateTimer</h3>
|
||||
|
||||
<p><code>${NSD_CreateTimer} <i>function_name</i> <i>timer_interval</i></code></p>
|
||||
|
||||
<p>See <a href="#ref-createtimer">CreateTimer</a> for more details.</p>
|
||||
|
||||
<h3><a name="mref-killtimer"></a>NSD_KillTimer</h3>
|
||||
|
||||
<p><code>${NSD_KillTimer} <i>function_name</i></code></p>
|
||||
|
||||
<p>See <a href="#ref-killtimer">KillTimer</a> for more details.</p>
|
||||
|
||||
<h3><a name="mref-addstyle"></a>NSD_AddStyle</h3>
|
||||
|
||||
<p><code>${NSD_AddStyle} <i>control_HWND</i> <i>style</i></code></p>
|
||||
|
||||
<p>Adds one or more window styles to a control. Multiple styles should be separated with pipes `|'.</p>
|
||||
|
||||
<p>See MSDN for style descriptions.</p>
|
||||
|
||||
<h3><a name="mref-addexstyle"></a>NSD_AddExStyle</h3>
|
||||
|
||||
<p><code>${NSD_AddExStyle} <i>control_HWND</i> <i>style</i></code></p>
|
||||
|
||||
<p>Adds one or more extended window styles to a control. Multiple styles should be separated with pipes `|'.</p>
|
||||
|
||||
<p>See <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/ff700543">MSDN</a> for style descriptions.</p>
|
||||
|
||||
<h3><a name="mref-gettext"></a>NSD_GetText</h3>
|
||||
|
||||
<p><code>${NSD_GetText} <i>control_HWND</i> <i>output_variable</i></code></p>
|
||||
|
||||
<p><code>${NSD_GetText} <i>control_HWND</i> <i>$output_variable</i></code></p>
|
||||
<p>Retrieves the text of a control and stores it into <i>output_variable</i>. Especially useful for textual controls.</p>
|
||||
|
||||
<p>See <a href="#step-state">Control State</a> for usage example.</p>
|
||||
|
||||
<h3><a name="mref-settext"></a>NSD_SetText</h3>
|
||||
|
||||
<p><code>${NSD_SetText} <i>control_HWND</i> <i>text</i></code></p>
|
||||
|
||||
<p>Sets the text of a control.</p>
|
||||
|
||||
<h3><a name="mref-settextlimit"></a>NSD_SetTextLimit</h3>
|
||||
|
||||
<p><code>${NSD_SetTextLimit} <i>control_HWND</i> <i>limit</i></code></p>
|
||||
|
||||
<p>Sets input size limit for a text control.</p>
|
||||
|
||||
<h3><a name="mref-getstate"></a>NSD_GetState</h3>
|
||||
|
||||
<p><code>${NSD_GetState} <i>control_HWND</i> <i>output_variable</i></code></p>
|
||||
|
||||
<p><code>${NSD_GetState} <i>control_HWND</i> <i>$output_variable</i></code></p>
|
||||
<p>Retrieves the state of a check box or a radio button control. Possible outputs are ${BST_CHECKED} and ${BST_UNCHECKED}.</p>
|
||||
|
||||
<p>See <a href="#step-memory">Memory</a> for usage example.</p>
|
||||
|
||||
<h3><a name="mref-setstate"></a>NSD_SetState</h3>
|
||||
|
||||
<p><code>${NSD_SetState} <i>control_HWND</i> <i>state</i></code></p>
|
||||
|
||||
<p>Sets the state of a check box or a radio button control. Possible values for <i>state</i> are ${BST_CHECKED} and ${BST_UNCHECKED}.</p>
|
||||
|
||||
<p>See <a href="#step-memory">Memory</a> for usage example.</p>
|
||||
|
||||
<h3><a name="mref-check"></a>NSD_Check</h3>
|
||||
|
||||
<p><code>${NSD_Check} <i>control_HWND</i></code></p>
|
||||
|
||||
<p>Checks a check box or a radio button control. Same as calling ${NSD_SetState} with ${BST_CHECKED}.</p>
|
||||
|
||||
<h3><a name="mref-uncheck"></a>NSD_Uncheck</h3>
|
||||
|
||||
<p><code>${NSD_Uncheck} <i>control_HWND</i></code></p>
|
||||
|
||||
<p>Unchecks a check box or a radio button control. Same as calling ${NSD_SetState} with ${BST_UNCHECKED}.</p>
|
||||
|
||||
<p>See <a href="#step-memory">Memory</a> for usage example.</p>
|
||||
|
||||
<h3><a name="mref-cbaddstring"></a>NSD_CB_AddString</h3>
|
||||
|
||||
<p><code>${NSD_CB_AddString} <i>combo_HWND</i> <i>string</i></code></p>
|
||||
|
||||
<p>Adds a string to a combo box.</p>
|
||||
|
||||
<h3><a name="mref-cbinsstring"></a>NSD_CB_InsertString</h3>
|
||||
|
||||
<p><code>${NSD_CB_InsertString} <i>combo_HWND</i> <i>index</i> <i>string</i></code></p>
|
||||
|
||||
<p>Insert a string in a specified position in a combo box.</p>
|
||||
|
||||
<h3><a name="mref-cbselectstring"></a>NSD_CB_SelectString</h3>
|
||||
|
||||
<p><code>${NSD_CB_SelectString} <i>combo_HWND</i> <i>string</i></code></p>
|
||||
|
||||
<p>Selects a string in a combo box.</p>
|
||||
|
||||
<h3><a name="mref-cbgetcount">NSD_CB_GetCount</a></h3>
|
||||
|
||||
<p><code>${NSD_CB_GetCount} <i>combo_HWND</i> <i>output_variable</i></code></p>
|
||||
<p><code>${NSD_CB_GetCount} <i>combo_HWND</i> <i>$output_variable</i></code></p>
|
||||
|
||||
<h3><a name="mref-lbaddstring"></a>NSD_LB_AddString</h3>
|
||||
|
||||
<p><code>${NSD_LB_AddString} <i>listbox_HWND</i> <i>string</i></code></p>
|
||||
|
||||
<p>Adds a string to a list box.</p>
|
||||
|
||||
<h3><a name="mref-lbinsstring"></a>NSD_LB_InsertString</h3>
|
||||
|
||||
<p><code>${NSD_LB_InsertString} <i>listbox_HWND</i> <i>index</i> <i>string</i></code></p>
|
||||
|
||||
<p>Insert a string in a specified position in a list box.</p>
|
||||
|
||||
<h3><a name="mref-lbdelstring"></a>NSD_LB_DelString</h3>
|
||||
|
||||
<p><code>${NSD_LB_DelString} <i>listbox_HWND</i> <i>string</i></code></p>
|
||||
|
||||
<p>Deletes a string from a list box.</p>
|
||||
|
||||
<h3><a name="mref-lbdelitem"></a>NSD_LB_DelItem</h3>
|
||||
|
||||
<p><code>${NSD_LB_DelItem} <i>listbox_HWND</i> <i>itemindex</i></code></p>
|
||||
|
||||
<p>Deletes a string from a list box.</p>
|
||||
|
||||
<h3><a name="mref-lbcleqar">NSD_LB_Clear</a></h3>
|
||||
|
||||
<p><code>${NSD_LB_Clear} <i>listbox_HWND</i></code></p>
|
||||
|
||||
<p>Deletes all strings from a list box.</p>
|
||||
|
||||
<h3><a name="mref-lbgetcount">NSD_LB_GetCount</a></h3>
|
||||
|
||||
<p><code>${NSD_LB_GetCount} <i>listbox_HWND</i> <i>output_variable</i></code></p>
|
||||
|
||||
<p><code>${NSD_LB_GetCount} <i>listbox_HWND</i> <i>$output_variable</i></code></p>
|
||||
<p>Retrieves the number of strings from a list box.</p>
|
||||
|
||||
<h3><a name="mref-lbselectstring"></a>NSD_LB_SelectString</h3>
|
||||
|
||||
<p><code>${NSD_LB_SelectString} <i>listbox_HWND</i> <i>string</i></code></p>
|
||||
|
||||
<p>Selects a string in a list box.</p>
|
||||
|
||||
<h3><a name="mref-lbgetselection">NSD_LB_GetSelection</a></h3>
|
||||
|
||||
<p><code>${NSD_LB_GetSelection} <i>listbox_HWND</i> <i>output_variable</i></code></p>
|
||||
|
||||
<p><code>${NSD_LB_GetSelection} <i>listbox_HWND</i> <i>$output_variable</i></code></p>
|
||||
<p>Retrieves the selected stringed from a list box. Returns an empty string if no string is selected.</p>
|
||||
|
||||
<h3><a name="mref-animopenfile">NSD_Anim_OpenFile</a></h3>
|
||||
|
||||
<p><code>${NSD_Anim_OpenFile} <i>anim_HWND</i> <i>avi_path</i></code></p>
|
||||
|
||||
<p>Opens the specified (silent) .AVI movie clip.</p>
|
||||
|
||||
<h3><a name="mref-animplay">NSD_Anim_Play</a></h3>
|
||||
|
||||
<p><code>${NSD_Anim_Play} <i>anim_HWND</i></code></p>
|
||||
|
||||
<p>Plays the movie clip repeatedly.</p>
|
||||
|
||||
<h3><a name="mref-animstop">NSD_Anim_Stop</a></h3>
|
||||
|
||||
<p><code>${NSD_Anim_Stop} <i>anim_HWND</i></code></p>
|
||||
|
||||
<p>Stops playback.</p>
|
||||
|
||||
<h3><a name="mref-trackgetpos">NSD_TrackBar_GetPos</a></h3>
|
||||
|
||||
<p><code>${NSD_TrackBar_GetPos} <i>track_HWND</i> <i>output</i></code></p>
|
||||
<p><code>${NSD_TrackBar_GetPos} <i>track_HWND</i> <i>$output</i></code></p>
|
||||
|
||||
<h3><a name="mref-tracksetpos">NSD_TrackBar_SetPos</a></h3>
|
||||
|
||||
<p><code>${NSD_TrackBar_SetPos} <i>track_HWND</i> <i>pos</i></code></p>
|
||||
|
||||
<h3><a name="mref-tracksetrmin">NSD_TrackBar_SetRangeMin</a></h3>
|
||||
|
||||
<p><code>${NSD_TrackBar_SetRangeMin} <i>track_HWND</i> <i>minpos</i></code></p>
|
||||
|
||||
<h3><a name="mref-tracksetrmax">NSD_TrackBar_SetRangeMax</a></h3>
|
||||
|
||||
<p><code>${NSD_TrackBar_SetRangeMax} <i>track_HWND</i> <i>maxpos</i></code></p>
|
||||
|
||||
<h3><a name="mref-tracksetticfr">NSD_TrackBar_SetTicFreq</a></h3>
|
||||
|
||||
<p><code>${NSD_TrackBar_SetTicFreq} <i>track_HWND</i> <i>frequency</i></code></p>
|
||||
|
||||
<p>Sets the interval frequency for tick marks.</p>
|
||||
|
||||
<h3><a name="mref-hkgethk">NSD_HotKey_GetHotKey</a></h3>
|
||||
<h3><a name="mref-udsetbuddy">NSD_UD_SetBuddy</a></h3>
|
||||
<p><code>${NSD_UD_SetBuddy} <i>ud_HWND</i> <i>buddy_HWND</i></code></p>
|
||||
|
||||
<p><code>${NSD_HotKey_GetHotKey} <i>hk_HWND</i> <i>output</i></code></p>
|
||||
<h3><a name="mref-udgetpos">NSD_UD_GetPos</a></h3>
|
||||
<p><code>${NSD_UD_GetPos} <i>ud_HWND</i> <i>$output</i></code></p>
|
||||
|
||||
<h3><a name="mref-udsetpos">NSD_UD_SetPos</a></h3>
|
||||
<p><code>${NSD_UD_SetPos} <i>ud_HWND</i> <i>pos</i></code></p>
|
||||
|
||||
<h3><a name="mref-udsetpackedrange">NSD_UD_SetPackedRange</a></h3>
|
||||
<p><code>${NSD_UD_SetPackedRange} <i>ud_HWND</i> <i>packedrange</i></code></p>
|
||||
<p>Sets the min-max range. Two signed 16-bit numbers packed into 32-bits.</p>
|
||||
|
||||
<h3><a name="mref-hkgethk">NSD_HK_GetHotKey</a></h3>
|
||||
<p><code>${NSD_HK_GetHotKey} <i>hk_HWND</i> <i>$output</i></code></p>
|
||||
<p>Bits 0..7 specify the virtual key code and bits 8..15 specify the HOTKEYF modifier flags.</p>
|
||||
|
||||
<h3><a name="mref-hksethk">NSD_HotKey_SetHotKey</a></h3>
|
||||
|
||||
<p><code>${NSD_HotKey_SetHotKey} <i>hk_HWND</i> <i>packedhotkey</i></code></p>
|
||||
<h3><a name="mref-hksethk">NSD_HK_SetHotKey</a></h3>
|
||||
<p><code>${NSD_HK_SetHotKey} <i>hk_HWND</i> <i>packedhotkey</i></code></p>
|
||||
|
||||
<h3><a name="mref-setimage"></a>NSD_SetImage</h3>
|
||||
|
||||
<p><code>${NSD_SetImage} <i>control_HWND</i> <i>image_path</i> <i>output_variable</i></code></p>
|
||||
|
||||
<p><code>${NSD_SetImage} <i>control_HWND</i> <i>image_path</i> <i>$output_variable</i></code></p>
|
||||
<p>Loads a bitmap from <i>image_path</i> and displays it on <i>control_HWND</i> created by <a href="#mref-create">${NSD_CreateBitmap}</a>. The image handle is stored in <i>output_variable</i> and should be freed using <a href="#mref-freeimage">${NSD_FreeImage}</a> once no longer necessary.</p>
|
||||
|
||||
<p>The image must be extracted to the user's computer prior to calling this macro. A good place to extract images is $PLUGINSDIR.</p>
|
||||
|
||||
<blockquote><pre>!include nsDialogs.nsh
|
||||
|
||||
Name nsDialogs
|
||||
OutFile nsDialogs.exe
|
||||
|
||||
XPStyle on
|
||||
|
||||
Page custom nsDialogsImage
|
||||
Page instfiles
|
||||
|
||||
|
@ -941,14 +803,11 @@ Var Image
|
|||
Var ImageHandle
|
||||
|
||||
Function .onInit
|
||||
|
||||
InitPluginsDir
|
||||
File /oname=$PLUGINSDIR\image.bmp "${NSISDIR}\Contrib\Graphics\Header\nsis-r.bmp"
|
||||
|
||||
FunctionEnd
|
||||
|
||||
Function nsDialogsImage
|
||||
|
||||
nsDialogs::Create 1018
|
||||
Pop $Dialog
|
||||
|
||||
|
@ -963,52 +822,37 @@ Function nsDialogsImage
|
|||
nsDialogs::Show
|
||||
|
||||
${NSD_FreeImage} $ImageHandle
|
||||
|
||||
FunctionEnd
|
||||
|
||||
Section
|
||||
SectionEnd</pre></blockquote>
|
||||
|
||||
<h3><a name="mref-setsimage"></a>NSD_SetStretchedImage</h3>
|
||||
|
||||
<p><code>${NSD_SetStretchedImage} <i>control_HWND</i> <i>image_path</i> <i>output_variable</i></code></p>
|
||||
|
||||
<p><code>${NSD_SetStretchedImage} <i>control_HWND</i> <i>image_path</i> <i>$output_variable</i></code></p>
|
||||
<p>Loads and displays a bitmap just like <a href="#mref-setimage">${NSD_SetImage}</a>, but stretched the image to fit the control.</p>
|
||||
|
||||
<h3><a name="mref-clearimage"></a>NSD_ClearImage</h3>
|
||||
<p><code>${NSD_ClearImage} <i>control_HWND</i></code></p>
|
||||
<p>Clears an image from a control.</p>
|
||||
|
||||
<h3><a name="mref-freeimage"></a>NSD_FreeImage</h3>
|
||||
<p><code>${NSD_FreeImage} <i>image_handle</i></code></p>
|
||||
<p>Frees an image handle previously loaded with <a href="#mref-setimage">${NSD_SetImage}</a> or <a href="#mref-setsimage">${NSD_SetStretchedImage}</a>.</p>
|
||||
|
||||
<h3><a name="mref-seticon"></a>NSD_SetIcon</h3>
|
||||
|
||||
<p><code>${NSD_SetIcon} <i>control_HWND</i> <i>image_path</i> <i>output_variable</i></code></p>
|
||||
|
||||
<p><code>${NSD_SetIcon} <i>control_HWND</i> <i>image_path</i> <i>$output_variable</i></code></p>
|
||||
<p>Same as <a href="#mref-setimage">${NSD_SetImage}</a>, but used for loading and setting an icon in a control created by <a href="#mref-create">${NSD_CreateIcon}</a>. The image handle is stored in <i>output_variable</i> and should be freed using <a href="#mref-freeicon">${NSD_FreeIcon}</a> once no longer necessary.</p>
|
||||
|
||||
<h3><a name="mref-seticonfrominstaller"></a>NSD_SetIconFromInstaller</h3>
|
||||
|
||||
<p><code>${NSD_SetIconFromInstaller} <i>control_HWND</i> <i>output_variable</i></code></p>
|
||||
|
||||
<p><code>${NSD_SetIconFromInstaller} <i>control_HWND</i> <i>$output_variable</i></code></p>
|
||||
<p>Loads the icon used in the installer and displays it on <i>control_HWND</i> created by <a href="#mref-create">${NSD_CreateIcon}</a>. The image handle is stored in <i>output_variable</i> and should be freed using <a href="#mref-freeicon">${NSD_FreeIcon}</a> once no longer necessary.</p>
|
||||
|
||||
<h3><a name="mref-clearimage"></a>NSD_ClearImage</h3>
|
||||
|
||||
<p><code>${NSD_ClearImage} <i>control_HWND</i></code></p>
|
||||
|
||||
<p>Clears an image from a control.</p>
|
||||
|
||||
<h3><a name="mref-clearicon"></a>NSD_ClearIcon</h3>
|
||||
|
||||
<p><code>${NSD_ClearIcon} <i>control_HWND</i></code></p>
|
||||
|
||||
<p>Clears an icon from a control.</p>
|
||||
|
||||
<h3><a name="mref-freeimage"></a>NSD_FreeImage</h3>
|
||||
|
||||
<p><code>${NSD_FreeImage} <i>image_handle</i></code></p>
|
||||
|
||||
<p>Frees an image handle previously loaded with <a href="#mref-setimage">${NSD_SetImage}</a> or <a href="#mref-setsimage">${NSD_SetStretchedImage}</a>.</p>
|
||||
|
||||
<h3><a name="mref-freeicon"></a>NSD_FreeIcon</h3>
|
||||
|
||||
<p><code>${NSD_FreeIcon} <i>icon_handle</i></code></p>
|
||||
|
||||
<p>Frees an icon handle previously loaded with <a href="#mref-seticon">${NSD_SetIcon}</a> or <a href="#mref-seticonfrominstaller">${NSD_SetIconFromInstaller}</a>.</p>
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
!include nsDialogs.nsh
|
||||
!include LogicLib.nsh
|
||||
!include WinCore.nsh ; MAKELONG
|
||||
|
||||
Name "nsDialogs Example"
|
||||
OutFile "nsDialogs Example.exe"
|
||||
|
@ -147,6 +148,14 @@ Function RangesPage
|
|||
Pop $2
|
||||
${NSD_CreateTimer} RangesTimer 1000
|
||||
|
||||
${NSD_CreateNumber} 1 40u 50u 12u "42"
|
||||
Pop $3
|
||||
${NSD_CreateUpDown} 0 0 0 0 ""
|
||||
Pop $4
|
||||
${NSD_UD_SetBuddy} $4 $3
|
||||
${MAKELONG} $5 $0 50 0 ; 0..50
|
||||
${NSD_UD_SetPackedRange} $4 $5
|
||||
|
||||
nsDialogs::Show
|
||||
FunctionEnd
|
||||
|
||||
|
|
|
@ -175,6 +175,16 @@ Header file for creating custom installer pages with nsDialogs
|
|||
!define TBS_NOTIFYBEFOREMOVE 0x0800 ; IE6?
|
||||
!define TBS_TRANSPARENTBKGND 0x1000 ; Vista
|
||||
|
||||
!define UDS_WRAP 0x0001
|
||||
!define UDS_SETBUDDYINT 0x0002
|
||||
!define UDS_ALIGNRIGHT 0x0004
|
||||
!define UDS_ALIGNLEFT 0x0008
|
||||
!define UDS_AUTOBUDDY 0x0010
|
||||
!define UDS_ARROWKEYS 0x0020
|
||||
!define UDS_HORZ 0x0040
|
||||
!define UDS_NOTHOUSANDS 0x0080
|
||||
!define UDS_HOTTRACK 0x0100 ; 98+
|
||||
|
||||
!define /ifndef LR_DEFAULTCOLOR 0x0000
|
||||
!define /ifndef LR_MONOCHROME 0x0001
|
||||
!define /ifndef LR_COLOR 0x0002
|
||||
|
@ -305,6 +315,14 @@ Header file for creating custom installer pages with nsDialogs
|
|||
!define __NSD_VTrackBar_STYLE ${DEFAULT_STYLES}|${TBS_VERT}|${TBS_AUTOTICKS}|${TBS_TOOLTIPS}
|
||||
!define __NSD_VTrackBar_EXSTYLE 0
|
||||
|
||||
!define __NSD_UpDown_CLASS msctls_updown32
|
||||
!define __NSD_UpDown_STYLE ${DEFAULT_STYLES}|${UDS_SETBUDDYINT}|${UDS_ARROWKEYS}|${UDS_NOTHOUSANDS}|${UDS_ALIGNRIGHT}
|
||||
!define __NSD_UpDown_EXSTYLE 0
|
||||
|
||||
!define __NSD_AutoUpDown_CLASS msctls_updown32
|
||||
!define __NSD_AutoUpDown_STYLE ${__NSD_UpDown_STYLE}|${UDS_AUTOBUDDY}
|
||||
!define __NSD_AutoUpDown_EXSTYLE ${__NSD_UpDown_EXSTYLE}
|
||||
|
||||
!define __NSD_HotKey_CLASS msctls_hotkey32
|
||||
!define __NSD_HotKey_STYLE ${DEFAULT_STYLES}
|
||||
!define __NSD_HotKey_EXSTYLE ${WS_EX_WINDOWEDGE}|${WS_EX_CLIENTEDGE}
|
||||
|
@ -341,6 +359,8 @@ Header file for creating custom installer pages with nsDialogs
|
|||
!insertmacro __NSD_DefineControl Animation
|
||||
!insertmacro __NSD_DefineControl HTrackBar
|
||||
!insertmacro __NSD_DefineControl VTrackBar
|
||||
!insertmacro __NSD_DefineControl UpDown
|
||||
!insertmacro __NSD_DefineControl AutoUpDown
|
||||
!insertmacro __NSD_DefineControl HotKey
|
||||
!insertmacro __NSD_DefineControl IPAddress
|
||||
|
||||
|
@ -678,6 +698,7 @@ SendMessage ${CONTROL} ${LB_SETITEMDATA} ${INDEX} ${DATA}
|
|||
|
||||
|
||||
### ProgressBar ###
|
||||
|
||||
!define NSD_ProgressBar_SetPos `${__NSD_MkCtlCmd_WP} PBM_SETPOS 0 `
|
||||
!define NSD_ProgressBar_SetStep `${__NSD_MkCtlCmd_WP} PBM_SETSTEP 0 `
|
||||
!define NSD_ProgressBar_StepIt `${__NSD_MkCtlCmd} PBM_STEPIT 0 0 `
|
||||
|
@ -697,12 +718,12 @@ SendMessage ${CONTROL} ${LB_SETITEMDATA} ${INDEX} ${DATA}
|
|||
|
||||
!define NSD_Anim_OpenFile `!insertmacro __NSD_Anim_OpenFile `
|
||||
!macro __NSD_Anim_OpenFile CONTROL PATH
|
||||
SendMessage ${CONTROL} ${ACM_OPEN} 0 "STR:${PATH}"
|
||||
SendMessage ${CONTROL} ${ACM_OPEN} 0 "STR:${PATH}"
|
||||
!macroend
|
||||
|
||||
!define NSD_Anim_OpenResource `!insertmacro __NSD_Anim_OpenResource `
|
||||
!macro __NSD_Anim_OpenResource CONTROL HINSTANCE_CC471 RESID
|
||||
SendMessage ${CONTROL} ${ACM_OPEN} "${HINSTANCE_CC471}" "${RESID}"
|
||||
SendMessage ${CONTROL} ${ACM_OPEN} "${HINSTANCE_CC471}" "${RESID}"
|
||||
!macroend
|
||||
|
||||
|
||||
|
@ -724,11 +745,38 @@ SendMessage ${CONTROL} ${ACM_OPEN} "${HINSTANCE_CC471}" "${RESID}"
|
|||
!define NSD_TrackBar_SetBuddy `${__NSD_MkCtlCmd_WPLP} TBM_SETBUDDY ` ; WP(BOOL):Left/Right LP:HWND
|
||||
|
||||
|
||||
### UpDown ###
|
||||
|
||||
!define NSD_UD_SetBuddy `${__NSD_MkCtlCmd_WP} UDM_SETBUDDY 0 `
|
||||
!define NSD_UD_GetPos `${__NSD_MkCtlCmd_RV} UDM_GETPOS 0 0 `
|
||||
!define NSD_UD_SetPos `${__NSD_MkCtlCmd_LP} UDM_SETPOS 0 `
|
||||
!define NSD_UD_GetPackedRange `${__NSD_MkCtlCmd_RV} UDM_GETRANGE 0 0 `
|
||||
!define NSD_UD_SetPackedRange `${__NSD_MkCtlCmd_LP} UDM_SETRANGE 0 ` ; LP(DWORD):MAKELONG(min,max)
|
||||
!define NSD_UD_GetPos32 `${__NSD_MkCtlCmd_RV} UDM_GETPOS32 0 0 `
|
||||
!define NSD_UD_SetPos32 `${__NSD_MkCtlCmd_LP} UDM_SETPOS32 0 `
|
||||
!define NSD_UD_SetRange32 `${__NSD_MkCtlCmd_WPLP} UDM_SETRANGE32 ` ; WP(INT32):min LP(INT32):max
|
||||
|
||||
!define NSD_UD_GetRange32 `!insertmacro __NSD_UD_GetRange32 `
|
||||
!macro __NSD_UD_GetRange32 CONTROL OUTLO OUTHI
|
||||
System::Call 'USER32::SendMessage(p${CONTROL},i${UDM_GETRANGE32},*i.s,*i.s)'
|
||||
Pop ${OUTLO}
|
||||
Pop ${OUTHI}
|
||||
!macroend
|
||||
|
||||
!define NSD_UD_SetStaticRange `!insertmacro __NSD_UD_SetStaticRange `
|
||||
!macro __NSD_UD_SetStaticRange CONTROL MI MA
|
||||
!define /redef /math MI ${MI} << 16
|
||||
!define /redef /math MA ${MA} & 0xffff
|
||||
!define /redef /math MA ${MI} | ${MA}
|
||||
SendMessage ${CONTROL} ${UDM_SETRANGE} 0 ${MA}
|
||||
!macroend
|
||||
|
||||
|
||||
### HotKey ###
|
||||
|
||||
!define NSD_HotKey_GetHotKey `${__NSD_MkCtlCmd_RV} HKM_GETHOTKEY 0 0 ` ; RV(WORD):MAKEWORD(VK,HOTKEYF)
|
||||
!define NSD_HotKey_SetHotKey `${__NSD_MkCtlCmd_WP} HKM_SETHOTKEY 0 `
|
||||
!define NSD_HotKey_SetRules `${__NSD_MkCtlCmd_WPLP} HKM_SETRULES `
|
||||
!define NSD_HK_GetHotKey `${__NSD_MkCtlCmd_RV} HKM_GETHOTKEY 0 0 ` ; RV(WORD):MAKEWORD(VK,HOTKEYF)
|
||||
!define NSD_HK_SetHotKey `${__NSD_MkCtlCmd_WP} HKM_SETHOTKEY 0 `
|
||||
!define NSD_HK_SetRules `${__NSD_MkCtlCmd_WPLP} HKM_SETRULES `
|
||||
|
||||
|
||||
### IP Address ###
|
||||
|
@ -777,7 +825,7 @@ Pop ${VAR}
|
|||
!macroend
|
||||
|
||||
!define NSD_SetImage `!insertmacro __NSD_LoadAndSetImage file ${IMAGE_BITMAP} 0 "${LR_LOADFROMFILE}" `
|
||||
!define NSD_SetBitmap `${NSD_SetImage}`
|
||||
!define NSD_SetBitmap `${NSD_SetImage} `
|
||||
|
||||
!define NSD_SetIcon `!insertmacro __NSD_LoadAndSetImage file ${IMAGE_ICON} 0 "${LR_LOADFROMFILE}|${LR_DEFAULTSIZE}" `
|
||||
!define NSD_SetIconFromExeResource `!insertmacro __NSD_SetIconFromExeResource `
|
||||
|
@ -822,6 +870,7 @@ Pop ${VAR}
|
|||
|
||||
|
||||
!define NSD_ClearImage `!insertmacro __NSD_ClearImage ${IMAGE_BITMAP} `
|
||||
!define NSD_ClearBitmap `${NSD_ClearImage} `
|
||||
!define NSD_ClearIcon `!insertmacro __NSD_ClearImage ${IMAGE_ICON } `
|
||||
!macro __NSD_ClearImage _IMGTYPE CONTROL
|
||||
SendMessage ${CONTROL} ${STM_SETIMAGE} ${_IMGTYPE} 0
|
||||
|
|
|
@ -43,6 +43,7 @@ TCM Tab control
|
|||
PBM Progress bar
|
||||
ACM Animation control
|
||||
TBM Track bar
|
||||
UDM Up-down control
|
||||
HKM Hot key control
|
||||
IPM IP address control
|
||||
-----------------------------------
|
||||
|
@ -60,7 +61,6 @@ RB Rebar control
|
|||
TB Toolbar
|
||||
TTM Tooltip control
|
||||
TVM Tree-view control
|
||||
UDM Up-down control
|
||||
-----------------------------------
|
||||
*/
|
||||
|
||||
|
@ -738,6 +738,24 @@ ${_NSIS_DEFAW} ACM_OPEN
|
|||
!define TBM_GETUNICODEFORMAT ${CCM_GETUNICODEFORMAT} ; IE4
|
||||
!define /math TBM_SETPOSNOTIFY ${WM_USER} + 34 ; 7?
|
||||
|
||||
#UpDown controls#
|
||||
!define /math UDM_SETRANGE ${WM_USER} + 101
|
||||
!define /math UDM_GETRANGE ${WM_USER} + 102
|
||||
!define /math UDM_SETPOS ${WM_USER} + 103
|
||||
!define /math UDM_GETPOS ${WM_USER} + 104
|
||||
!define /math UDM_SETBUDDY ${WM_USER} + 105
|
||||
!define /math UDM_GETBUDDY ${WM_USER} + 106
|
||||
!define /math UDM_SETACCEL ${WM_USER} + 107
|
||||
!define /math UDM_GETACCEL ${WM_USER} + 108
|
||||
!define /math UDM_SETBASE ${WM_USER} + 109
|
||||
!define /math UDM_GETBASE ${WM_USER} + 110
|
||||
!define /math UDM_SETRANGE32 ${WM_USER} + 111 ; IE4
|
||||
!define /math UDM_GETRANGE32 ${WM_USER} + 112 ; IE4
|
||||
!define UDM_SETUNICODEFORMAT ${CCM_SETUNICODEFORMAT} ; IE4
|
||||
!define UDM_GETUNICODEFORMAT ${CCM_GETUNICODEFORMAT} ; IE4
|
||||
!define /math UDM_SETPOS32 ${WM_USER} + 113 ; IE5
|
||||
!define /math UDM_GETPOS32 ${WM_USER} + 114 ; IE5
|
||||
|
||||
#HotKey control#
|
||||
!define /math HKM_SETHOTKEY ${WM_USER} + 1
|
||||
!define /math HKM_GETHOTKEY ${WM_USER} + 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue