Answer Posted / ps
1. make a control variable of button with the Cbutton class;
2. where you want to change the text then call only setwindowtext();
in header file;
Cbutton mButton;.
IN RESOURCE.H...
#DEFINE BUTTON_ID 249;// CONTROLL ID NUMBER 249 ANY YOU WNT OR SYSTEM GENRATED.
in cpp file.
'''''''mesage map
ABC::DoDataExchange(CDataExchange* pDX)
{
CDialogEx::DoDataExchange(pDX);
DDX_Control(pDX, BUTTON_ID, mButton);
}
BOOL ABC::OnInitDialog()
{
// IF USER CHANGE ON INIT METHOD THEN CAN DO OR CHANGE IN ANY METHOD WITH THE SAME CLASS
mButton.setwindowText(_T"hello");
}
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
what message is sent to an application when the user presses the primary button?
What is the difference between Struts and JSF? Pls list some most suitable differences.
What does mfc stand for?
I want recent paper pattern for HP company?
what is functioning of DIalodDataXchange ..?
How to handle dynamic menus in mfc? What happens when client calls cocreateinstance?
Do you have an idea about MFC?
2.create for 10 batch: Employee_Number Employee_name Employee_Dateofjoining Employee_address Employee_salary 1.select the employee name who deriving more than 10 thousand salary and joined before august 08. use structure and pointers
What is mfc class hierarchy?
How do I create a dialog box in mfc?
how to repaint when working with horizontal scroll bar
List out the basic features of MFC.
plzz tell me what we can do and dont in tally ERP & sap business one?
what is the meaning of constant FILE EXCEEDS LENGTH LIMIT while loading from ps file to vsam in the jcl?