This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: How to send custom messages to InstallShield custom dialog from an external DLL
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 22, 2008
11:25 AM
How to send custom messages to InstallShield custom dialog from an external DLL
Hi,
Is there a way to post custom messages to InstallShield custom dialog from an external DLL?
The external DLL function called during DLG_INIT is supposed to send custom messages to InstallShield custom dialog from separate thread.
regards,
RR.
Is there a way to post custom messages to InstallShield custom dialog from an external DLL?
The external DLL function called during DLG_INIT is supposed to send custom messages to InstallShield custom dialog from separate thread.
regards,
RR.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 23, 2008
01:35 AM
Use PostMessage() / SendMessage() from external DLL:
BOOL PostMessage(
HWND hWnd,
UINT Msg,
WPARAM wParam,
LPARAM lParam
);
LRESULT SendMessage(
HWND hWnd,
UINT Msg,
WPARAM wParam,
LPARAM lParam
);
hWnd = Handle of the InstallShield Dialog to send the message to [use: CmdGetHwndDlg ( szDialogName );]
Msg = WM_* message you want to send to the control [with EzDefineDialog() use WM_COMMAND; with DefineDialog() and DLG_MSG_ALL other messages can also be used]
wParam = Resource ID of the control to send message to [this can also be a 'custom' number which is being appropriately handled in WaitOnDialog()'s while-endwhile (message) loop]
lParam = Handle of the control you want to send the message to [use: HWND GetDlgItem(HWND hDlg, int nIDDlgItem); to get the handle of the control]
regards,
RR.
BOOL PostMessage(
HWND hWnd,
UINT Msg,
WPARAM wParam,
LPARAM lParam
);
LRESULT SendMessage(
HWND hWnd,
UINT Msg,
WPARAM wParam,
LPARAM lParam
);
hWnd = Handle of the InstallShield Dialog to send the message to [use: CmdGetHwndDlg ( szDialogName );]
Msg = WM_* message you want to send to the control [with EzDefineDialog() use WM_COMMAND; with DefineDialog() and DLG_MSG_ALL other messages can also be used]
wParam = Resource ID of the control to send message to [this can also be a 'custom' number which is being appropriately handled in WaitOnDialog()'s while-endwhile (message) loop]
lParam = Handle of the control you want to send the message to [use: HWND GetDlgItem(HWND hDlg, int nIDDlgItem); to get the handle of the control]
regards,
RR.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 28, 2008
07:07 AM
Hi,
Can you please upload sample code for the same ? because I tried to use the steps but I am not able to get message from the external dll.
Thanks
Sachin Pawar
Can you please upload sample code for the same ? because I tried to use the steps but I am not able to get message from the external dll.
Thanks
Sachin Pawar