Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MFC events , message maps , etc

Status
Not open for further replies.

Conundrum

IS-IT--Management
Oct 4, 2000
6
US
ive made a few different dialogs via the resourse editor in VC++ 6 with MFC. and i have no pointers to the different controls on the dialogs (as its all done in the resource files). My question is how do i access the actual control (mainly CEdit boxes) to run some of the functions of that control?

i think i can get the ID of the control, but what then?
how can i access the control via the ID

any help MUCH appreciated
 
never mind found answer myself
FYI

CWnd::GetDlgItem
which takes the ID number and returns a CWnd* ,If the control you are referencing is something other than a CWnd object, then you simply type cast it as such.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top