本文仅为后续需要回顾使用:
installshield工具自定义窗口有关的部分控制函数
(下面基于Installshield2008版本,高版本有所变化)
[
_WinSubPostMessage(HWND, SHORT, SHORT, LONG)
_WinSubMoveWindow(HWND, INT, INT, INT, INT, INT)
_WinSubGetClientRect(HWND, BYREF INT, BYREF INT, BYREF INT, BYREF INT)
_WinSubGetModuleHandle(STRING)
_WinSubShowCurSor(INT)
_WinSubShowWindow(HWND, INT)
_WinSubFocusControl(HWND, INT)
_WinSubFocusWindow(HWND)
_WinSubEnableControl(HWND, INT, INT)
_WinSubGetChildWindow(HWND, INT)
_WinSubEnableWindow(HWND, INT)
_WinSubSetWindowTitle(HWND, STRING)
_WinSubCenterWindow(HWND)
_WinSubIsWindow(HWND)
_WinSubGetWindowRect(HWND, BYREF INT, BYREF INT, BYREF INT, BYREF INT)
_WinSubSetWindowPos(HWND, INT, INT, INT, INT)
]
上面大部分函数都有HWND这个参数类型,指的是窗口句柄,那么怎么来获取一个控件的句柄呢,installshield里面使用GetDlgItem(HWND/*父窗口句柄*/, INT/*控件的ID*/)<于MFC里面获取窗口句柄一样>,这样就可以用上面的函数使控件处于无效或者隐藏的状态等