![]() |
Skinframework with hook dialogs |
Post Reply
|
| Author | |
youka
Groupie
Joined: 20 March 2006 Status: Offline Points: 20 |
Post Options
Thanks(0)
Quote Reply
Topic: Skinframework with hook dialogsPosted: 28 May 2007 at 10:29am |
|
Dears ,
I tested skinframework with a hook messagebox, but it can't work.
the code sample can be found here:
http://vbnet.mvps.org/index.html?code/hooks/messageboxhooktimer.htm
I use SetWindowsHookEx(WH_CBT, _
AddressOf MsgBoxHookProc, _ hInstance, hThreadId) to hook to a msgbox so that i can change the button captions.
But even if I called CallNextHookEx(MSGHOOK.hHook, uMsg, wParam, ByVal lParam) The skin still won't be applied to the messagebox dialog.
Any one could help will be greate appreciated:)
Thanks.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 28 May 2007 at 3:27pm |
|
Hello,
this code has bug - it doesn't call CallnextHookEx.
Attach project to show how you use it/what call.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
youka
Groupie
Joined: 20 March 2006 Status: Offline Points: 20 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 May 2007 at 1:18am |
|
thanks for your reply. I have give up using CBT hook with skinframework. it doen't work even if i wrote nothing in the hook procedure but "CallNextHookEx(hHook, uMsg, WPARAM, LPARAM)".
Now i switch to WH_CALLWNDPROC, skinframework behavior now is OK.
![]() |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 May 2007 at 4:29am |
|
ok :)
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |