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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getting the id

Status
Not open for further replies.

bubak

Programmer
Jun 25, 2001
208
SK
I have my own object. I create it with myObj.Create(...ID...), it's derived from CButton, so ID is one of the parameters for creating. How do I get this ID somewhere in a member function for this object? eg. when I create 20 of these objects, how do I find out in a member function, which is the one, which is used?
thx
bubak
 
CButton btn;
btn.Create( _T( "Cau" ), 0, CRect( 0, 0, 1, 1 ), this, 1234 );
UINT nId = btn.GetDlgCtrlID();
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top