Announcement

Collapse

New Sub-Forum

In an effort to help make sure there are appropriate categories for topics of discussion that are happening, there is now a sub-forum for databases and database programming under Special Interest groups. Please direct questions, etc., about this topic to that sub-forum moving forward. Thank you.
See more
See less

Capturing mouse and keyboard messages from a graphic control or window in PBWin 8.04

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Capturing mouse and keyboard messages from a graphic control or window in PBWin 8.04

    In PBWin 8.03 and previous versions of PBWin 8, you could subclass the graphic window and capture these messages. In PBWin 8.04, you must subclass the static control on the graphic window to capture these messages. A graphic window is a dialog box with one static control on it, the static control is what you actually do the drawing on. All you need to do is get the handle of this static control with hStatic = GetWindow(hGraphicWindow, %GW_CHILD) and subclass hStatic instead of hGraphicWindow. I posted an example of how to subclass a graphic window and a graphic control to capture mouse and keyboard messages at http://www.powerbasic.com/support/pb...ad.php?t=35337.
    Sincerely,

    Steve Rossell
    PowerBASIC Staff

Working...
X