Click here to Skip to main content
15,926,385 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Button on the task bar Pin
Joaquín M López Muñoz10-Mar-02 2:41
Joaquín M López Muñoz10-Mar-02 2:41 
GeneralRe: Button on the task bar Pin
Nish Nishant10-Mar-02 6:04
sitebuilderNish Nishant10-Mar-02 6:04 
GeneralVisual Studio macros Pin
10-Mar-02 1:00
suss10-Mar-02 1:00 
GeneralAbout performance counters... Pin
9-Mar-02 23:25
suss9-Mar-02 23:25 
GeneralRuning app from resources Pin
9-Mar-02 22:16
suss9-Mar-02 22:16 
GeneralRe: Runing app from resources Pin
Lim Bio Liong10-Mar-02 0:19
Lim Bio Liong10-Mar-02 0:19 
GeneralChanging control properties - Newbie Pin
Roselina9-Mar-02 21:49
Roselina9-Mar-02 21:49 
GeneralRe: Changing control properties - Newbie Pin
Paul M Watt9-Mar-02 22:27
mentorPaul M Watt9-Mar-02 22:27 
You can use the functions GetWindowText and SetWindowText to change the caption of the button. You will want to do this in your handler for the WM_COMMAND message that has the same ID as your button control.

Chances are, that the same properties that you were able to use in VB are available when you program in C++. However, there is no easy way to see the properties that are available for a control. You will need to look in MSDN for more information on each control.

If you want to know how to hide controls you can use:

ShowWindow(hWnd, SW_HIDE);

where hWnd is the control that you want to hide. If you are doing this in a dialog box and you need to get the handle to one of your controls, use GetDlgItem. You pass the handle to the dialog that owns the control, and the control ID to this function, and it will return the handle to the control.

If you want to make that window appear again call:

ShowWindow(hWnd, SW_SHOW);
Generalmfc tab control Pin
9-Mar-02 21:52
suss9-Mar-02 21:52 
GeneralNeed some information about VBA,Thank you! Pin
big20029-Mar-02 21:21
big20029-Mar-02 21:21 
GeneralNeed some information about VBA,Thank you! Pin
9-Mar-02 20:54
suss9-Mar-02 20:54 
Generaldeleting a 'new' object Pin
Jack Handy9-Mar-02 15:17
Jack Handy9-Mar-02 15:17 
GeneralRe: deleting a 'new' object Pin
Nish Nishant9-Mar-02 15:24
sitebuilderNish Nishant9-Mar-02 15:24 
GeneralRe: deleting a 'new' object Pin
Jack Handy10-Mar-02 4:59
Jack Handy10-Mar-02 4:59 
GeneralRe: deleting a 'new' object Pin
Paul M Watt10-Mar-02 6:13
mentorPaul M Watt10-Mar-02 6:13 
GeneralRe: deleting a 'new' object Pin
Nish Nishant10-Mar-02 6:23
sitebuilderNish Nishant10-Mar-02 6:23 
GeneralParsing string with Time Zone info Pin
Mike.NET9-Mar-02 12:03
Mike.NET9-Mar-02 12:03 
GeneralRe: Parsing string with Time Zone info Pin
Matt Newman9-Mar-02 15:04
Matt Newman9-Mar-02 15:04 
QuestionWie kann ich meinem Programm ein neues Aussehen verschaffen ? Pin
CryoGate9-Mar-02 10:13
CryoGate9-Mar-02 10:13 
AnswerRe: Wie kann ich meinem Programm ein neues Aussehen verschaffen ? Pin
User 66589-Mar-02 10:49
User 66589-Mar-02 10:49 
AnswerRe: Wie kann ich meinem Programm ein neues Aussehen verschaffen ? Pin
Anders Molin9-Mar-02 11:34
professionalAnders Molin9-Mar-02 11:34 
GeneralRe: Wie kann ich meinem Programm ein neues Aussehen verschaffen ? Pin
User 66589-Mar-02 11:38
User 66589-Mar-02 11:38 
GeneralRe: Wie kann ich meinem Programm ein neues Aussehen verschaffen ? Pin
Anders Molin9-Mar-02 11:48
professionalAnders Molin9-Mar-02 11:48 
QuestionAlpha blending in Windows98 and older? Pin
Wizard_019-Mar-02 7:36
Wizard_019-Mar-02 7:36 
AnswerRe: Alpha blending in Windows98 and older? Pin
Tomasz Sowinski9-Mar-02 7:36
Tomasz Sowinski9-Mar-02 7:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.