Print Page | Close Window

Skinframework with hook dialogs

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=7250
Printed Date: 30 January 2025 at 6:39pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Skinframework with hook dialogs
Posted By: youka
Subject: Skinframework with hook dialogs
Date Posted: 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 -  
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.



Replies:
Posted By: Oleg
Date 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


Posted By: youka
Date 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.


Posted By: Oleg
Date Posted: 29 May 2007 at 4:29am
ok :)

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net