Search found 173 matches

by kcvinu
Oct 22, 2018 20:44
Forum: Windows
Topic: OWNER DRAW Button painting problem
Replies: 3
Views: 243

Re: OWNER DRAW Button painting problem

@jj2007, At last, I found the problem !! It was the second parameter of the InvalidateRect() function. In wm_mousemove and wm_mouseleave msgs, i call this IvalidateRect with second parameter as "NULL". After a long time virtual debugging, i found that it accepts the rect of the control. No...
by kcvinu
Oct 22, 2018 20:18
Forum: Windows
Topic: OWNER DRAW Button painting problem
Replies: 3
Views: 243

Re: OWNER DRAW Button painting problem

@jj2007, To be frank, I think i dont know. My drawing function takes only one parameter. It is an LPDRAWITEMSTRUCT . I know that the struct contains an hwndItem member. here is the pseudo code of this drawing function for clarity. 1. CButton is a User Defined Type. (Lets say a class) 2. This class h...
by kcvinu
Oct 22, 2018 15:57
Forum: Windows
Topic: OWNER DRAW Button painting problem
Replies: 3
Views: 243

OWNER DRAW Button painting problem

Hi all, I have two owner draw buttons. (lets say ODB ) I am using WM_DRAWITEM message to paint these buttons. this is the pseudo code if mouse is entered on the ODB invalidate the ODB if mouse leave from ODB invalidate the ODB In the WM_DRAWITEM message, i handled the drawing like this - if mouse is...
by kcvinu
Oct 22, 2018 14:13
Forum: Windows
Topic: How to get notified when mouse enter controls
Replies: 3
Views: 351

Re: How to get notified when mouse enter controls

@Pierre Bellisle ,
Thanks for the reply. Thats a great help for me. Really a good workaround for TrackMouseEvent.
by kcvinu
Oct 21, 2018 13:21
Forum: Windows
Topic: How to get notified when mouse enter controls
Replies: 3
Views: 351

How to get notified when mouse enter controls

Hi all, In my gui code, I have subclassed all controls and used TrackMouseEvent function in order to get notified when mouse enters on all controls. So this is my question, is there any better method to get notified mouse enter and mouse leave events without using TrackMouseEvent function ? Thanks i...
by kcvinu
Oct 19, 2018 6:47
Forum: Windows
Topic: please test my crappy owner-draw menu
Replies: 36
Views: 5778

Re: please test my crappy owner-draw menu

Hi,
It worked in windows 8 x86 but same as @VANYA. Everything is in black backcolor.
by kcvinu
Oct 17, 2018 12:15
Forum: Windows
Topic: How to create a Panel control with win api ?
Replies: 11
Views: 709

Re: How to create a Panel control with win api ?

@St_W,
Thanks, THat helped. And you are right. That link says nothing about creating a panel with win32.
BTW, Now, i am able to create a panel in my window. Next hurdle is to change the back color of that panel.
by kcvinu
Oct 17, 2018 8:21
Forum: Windows
Topic: How to create a Panel control with win api ?
Replies: 11
Views: 709

Re: How to create a Panel control with win api ?

Thank you all for the answers. Let me try. First of all, i am going to read the web page which jj2007 suggested. By the way, @PaulSquires, I have tried with these styles- const PNL_STYLE : DWORD = WS_CHILD or WS_VISIBLE or WS_CLIPCHILDREN or WS_CLIPSIBLINGS const PNL_EX_STYLE : DWORD = WS_EX_CONTROL...
by kcvinu
Oct 17, 2018 8:05
Forum: Windows
Topic: How to create a Panel control with win api ?
Replies: 11
Views: 709

Re: How to create a Panel control with win api ?

deltarho[1859] wrote:37 views and no response. I wonder if folks don't know what you mean by 'Panel control' - I don't.

Do you mean invoking the Control Panel programmatically?


Ha ha.. Jose said it. That's a container control.
by kcvinu
Oct 16, 2018 14:01
Forum: Windows
Topic: How to create a Panel control with win api ?
Replies: 11
Views: 709

How to create a Panel control with win api ?

Hi all,
I am trying to create a panel control, but i cant find any help related to it from web. How to create a panel control with CreateWindowex ?
by kcvinu
Oct 14, 2018 14:41
Forum: Windows
Topic: How to draw a rectangle in mouse move event
Replies: 2
Views: 257

Re: How to draw a rectangle in mouse move event

@ D.J.Peters, Thanks for the reply. Bu i think i am having hard time. I can send the wm_user message to parent window. Parent is receiving that too, but parent is not calling WM_DRAWITEM after that. I have wrote code to change the button backcolor in WM_DRAWITEM handler. Specially when (itemState an...
by kcvinu
Oct 14, 2018 7:13
Forum: Windows
Topic: How to draw a rectangle in mouse move event
Replies: 2
Views: 257

How to draw a rectangle in mouse move event

Hi all, I have an owner draw button. Now, i want to draw a rectangle (or change the back color of the button) when user moves mouse pointer in the button rect. And of course, i want to delete it in the mouse leave event. This button is a subclassed one. So i can get the mouse move and mouse leave ev...
by kcvinu
Oct 13, 2018 19:03
Forum: Windows
Topic: Buttons colored by Gradientfill
Replies: 2
Views: 1166

Re: Buttons colored by Gradientfill

Hi, i have some questions about this gradient button. Are you there ?
by kcvinu
Oct 09, 2018 6:44
Forum: Beginners
Topic: How to use TrackMouseEvent ?
Replies: 2
Views: 338

Re: How to use TrackMouseEvent ?

@jj2007,
Thanks a lot. :)
by kcvinu
Oct 07, 2018 20:17
Forum: Beginners
Topic: How to use TrackMouseEvent ?
Replies: 2
Views: 338

How to use TrackMouseEvent ?

Hi all, I am playing with some win api gui code. I am sorry because, this code is not in FB, but in Nim. But i am sure that this question is related to WinAPI and language is not a problem. Thats why i am asking here. I have GUI and WndProc function. For an experiment, i just re arrange my wndproc a...

Go to advanced search