![]() |
New skin problem |
Post Reply
|
| Author | |
himanshu
Groupie
Joined: 04 January 2008 Status: Offline Points: 81 |
Post Options
Thanks(0)
Quote Reply
Topic: New skin problemPosted: 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 |
Post Options
Thanks(0)
Quote Reply
Posted: 20 May 2008 at 8:12am |
|
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 |
Post Options
Thanks(0)
Quote Reply
Posted: 20 May 2008 at 8:22am |
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 20 May 2008 at 8:43am |
|
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 |
Post Options
Thanks(0)
Quote Reply
Posted: 21 May 2008 at 12:56am |
|
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 |
Post Options
Thanks(0)
Quote Reply
Posted: 21 May 2008 at 2:02am |
|
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 |
Post Options
Thanks(0)
Quote Reply
Posted: 21 May 2008 at 2:46am |
|
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 |