Skip to main content
gamedev.net
🔒 Locked

win api question

Started by mago 4 replies 400+ views
Original Post
mago
mago
hi everybody I have this simple question: is there a way to enable/disable a control and retrieve text from a control having only it''s ID, not a HWND? thanks
thanx for sharing
Advanced Bug
Advanced Bug
You can use the GetDlgItem function to get HWND from control ID. You can also use the SendDlgItemMessage function to send message directly to control using parent window HWND and control ID.
mago
mago
thanx very much



just one more thing .... does anybody know where to find a clear and understandable reference about using windows controls in your program (not MFC)? The "Tricks of Windows Game Programming Gurus" really have only the basics and MSDN is sooooo confusing...
thanx for sharing
mago
mago
I know it's all done by CreateWindow but I meant some textfile about functions like GetDlgItemText and all messages used for changing the controls or retrieving data from them

Edited by - mago on December 4, 2001 9:43:06 AM
thanx for sharing
Advanced Bug
Advanced Bug
All information about windows user interface can be found at MSDN->Library->Windows User Interface. In my opinion MSDN Library is a mess, but there are overviews and examples for all windows API topics and reference on all API functions.
For example function GetDlgItemText is described at Windows User Interface > Dialog Boxes > Dialog Box Reference > Dialog Box Functions, some overview about it is at Windows User Interface > Dialog Boxes > About Dialog Boxes > Dialog Box Settings > Dialog Box Edit Controls, and an example is at Windows User Interface > Dialog Boxes > Using Dialog Boxes > Creating a Modal Dialog Box

Edited by - Advanced Bug on December 5, 2001 3:48:22 AM

Edited by - Advanced Bug on December 5, 2001 3:49:24 AM

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.