![]() |
New skin problem |
Post Reply ![]() |
Author | |
himanshu ![]() Groupie ![]() Joined: 04 January 2008 Status: Offline Points: 81 |
![]() ![]() ![]() ![]() ![]() Posted: 20 May 2008 at 7:24am |
HI
please find the image attached
i am not able to apply skin for the button attached with dialog box created with CreateWindow.
|
|
![]() |
|
Oleg ![]() Senior Member ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Think you already know that my answer will be "please attach this sample project"
:)
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
himanshu ![]() Groupie ![]() Joined: 04 January 2008 Status: Offline Points: 81 |
![]() ![]() ![]() ![]() ![]() |
![]() |
|
Oleg ![]() Senior Member ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Problem in sample code.
You set windowproc for button and then call wndClass.lpfnWndProc.
but have to store previous windowproc and call it.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
himanshu ![]() Groupie ![]() Joined: 04 January 2008 Status: Offline Points: 81 |
![]() ![]() ![]() ![]() ![]() |
hi
could you please put the code for how to achieve this.
thanks
himanshu
|
|
![]() |
|
Oleg ![]() Senior Member ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Just save pointer
ButtonOldProc = (WNDPROC)SetWindowLongPtr( hWndButton, GWLP_WNDPROC, (LONG_PTR)StaticOptMenuWndProc );
and use it in StaticOptMenuWndProc static LRESULT CALLBACK StaticOptMenuWndProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam ){ WNDPROC lpfnButtonProc = ButtonOldProc;ps. You need cleanup your code. its too dirty.
for example This code
case WM_LBUTTONDOWN:
{ SendMessage( hWnd, WM_PAINT, wParam, lParam );
can kill OS. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
himanshu ![]() Groupie ![]() Joined: 04 January 2008 Status: Offline Points: 81 |
![]() ![]() ![]() ![]() ![]() |
thanks Oleg,
This is just the sample i am trying many things.that call "SendMessage" was intended over there.
|
|
![]() |
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 |