Search found 178 matches

by kcvinu
Nov 28, 2019 8:21
Forum: Windows
Topic: How to get the message time from message structure ?
Replies: 8
Views: 433

Re: How to get the message time from message structure ?

@SARG ,
Thanks for this reply. Let me try. :)
by kcvinu
Nov 27, 2019 15:55
Forum: Windows
Topic: How to get the message time from message structure ?
Replies: 8
Views: 433

How to get the message time from message structure ?

Hi all, Forgive me if this question is already asked. I would like to know how to get the message time from the MSG structure in win32 Gui programming ? I just tried this in the " GetMessage" function. But since, it's a DWORD, i only get big number. TranslateMessage(imsg) DispatchMessage(i...
by kcvinu
Nov 23, 2019 15:52
Forum: Windows
Topic: How to implement mouse single click & double click events
Replies: 2
Views: 185

How to implement mouse single click & double click events

Hi all, I am playing with some win32 api gui code. Now, i would like to create a mouse click & double click event for my gui library. I've read that one would need to deal with four type of mouse messages to implement this feature. For a single click - WM_LBUTTONDOWN WM_LBUTTONUP And for a doubl...
by kcvinu
Oct 19, 2019 22:33
Forum: Documentation
Topic: How and Why to make Abstraction by Object Encapsulation, with FB Syntax in UDTs (basics)
Replies: 19
Views: 2573

Re: How and Why to make Abstraction by Object Encapsulation, with FB Syntax in UDTs (basics)

I quit freebasic coding for about two years. But when i came back, what i can see is such great posts and comments. I feel sad that it's too late to read this. Thanks for this post.
by kcvinu
Oct 22, 2018 20:44
Forum: Windows
Topic: OWNER DRAW Button painting problem
Replies: 3
Views: 430

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: 430

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: 430

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: 552

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: 552

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: 6718

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: 1083

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: 1083

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: 1083

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: 1083

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 ?

Go to advanced search