Click here to Skip to main content
16,010,392 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Lib Errors Pin
stupration9-May-02 12:09
stupration9-May-02 12:09 
GeneralRe: Lib Errors Pin
Joaquín M López Muñoz9-May-02 20:01
Joaquín M López Muñoz9-May-02 20:01 
GeneralRe: Lib Errors Pin
Mike Nordell9-May-02 20:24
Mike Nordell9-May-02 20:24 
GeneralRe: Lib Errors Pin
stupration10-May-02 12:54
stupration10-May-02 12:54 
GeneralRe: Lib Errors Pin
stupration10-May-02 13:10
stupration10-May-02 13:10 
Questionhow to detect that a window is flashing Pin
MaxiGroovy9-May-02 11:32
MaxiGroovy9-May-02 11:32 
AnswerRe: how to detect that a window is flashing Pin
Mike Nordell9-May-02 20:25
Mike Nordell9-May-02 20:25 
GeneralOptional Push-Buttons Around Frame :: MFC Pin
valikac9-May-02 11:14
valikac9-May-02 11:14 
Hi.

I have always wondered about having push-buttons at any specific place around the frame in a SDI architecture. I will explain as best I can about how the program might look like. Here is a typical SDI core GUI.

-----
Menu/Toolbar
-----
View
-----
Statusbar
-----

I would like to have something like this:

-----
Menu/Toolbar
-----
View
-----
Two Push-Buttons (Open | Exit) // open and exit is arbitrary
-----
Statusbar
-----

What is the best way to implement something like the GUI above? It is easy to add buttons and such inside a dialog box, but I have never be able to add push-buttons anywhere in the main frame.

I have one idea, but I am not completely sure on how to add the click mesages if the user clicks the button. Three weeks ago I posted a thread asking about added a progress bar insde the status bar. A member at CodeGuru posted a very unique technique that basically enable/disable the default status bar and enable/disable a CControlBar. It was such a cool technique. I am still using it.

I was thinking maybe I can implement the same setup, but this time, enable the CControlbar througout the program's lifetime. However, how will I be able to process messages if the user clicks a button? the use of CControlbar does not require deriving a class to encapsulate the dialog box. Thus, I have no way of processing messages cooresponding to the buttons inside the dialog box.

Do you have a better technique?

Thanks,
Kuphryn
GeneralRe: Optional Push-Buttons Around Frame :: MFC Pin
James R. Twine10-May-02 10:22
James R. Twine10-May-02 10:22 
GeneralRe: Optional Push-Buttons Around Frame :: MFC Pin
valikac10-May-02 10:27
valikac10-May-02 10:27 
GeneralRe: Optional Push-Buttons Around Frame :: MFC Pin
James R. Twine10-May-02 10:34
James R. Twine10-May-02 10:34 
GeneralPointers Pin
Peter Liddle9-May-02 10:59
Peter Liddle9-May-02 10:59 
GeneralRe: Pointers Pin
Joaquín M López Muñoz9-May-02 11:11
Joaquín M López Muñoz9-May-02 11:11 
GeneralRe: Pointers Pin
Peter Liddle9-May-02 11:13
Peter Liddle9-May-02 11:13 
GeneralRe: Pointers Pin
Joaquín M López Muñoz9-May-02 11:21
Joaquín M López Muñoz9-May-02 11:21 
GeneralRe: Pointers Pin
Peter Liddle9-May-02 11:26
Peter Liddle9-May-02 11:26 
GeneralRe: Pointers Pin
Joaquín M López Muñoz9-May-02 11:29
Joaquín M López Muñoz9-May-02 11:29 
GeneralRe: Pointers Pin
Peter Liddle10-May-02 6:42
Peter Liddle10-May-02 6:42 
GeneralRe: Pointers Pin
James R. Twine10-May-02 10:26
James R. Twine10-May-02 10:26 
GeneralProperty Sheets :: MFC Pin
valikac9-May-02 10:59
valikac9-May-02 10:59 
GeneralRe: Property Sheets :: MFC Pin
Chris Losinger9-May-02 11:10
professionalChris Losinger9-May-02 11:10 
GeneralRe: Property Sheets :: MFC Pin
Joaquín M López Muñoz9-May-02 11:17
Joaquín M López Muñoz9-May-02 11:17 
GeneralRe: Thanks Pin
valikac9-May-02 11:24
valikac9-May-02 11:24 
GeneralRe: Thanks Pin
Chris Losinger9-May-02 11:27
professionalChris Losinger9-May-02 11:27 
GeneralRe: Apply Button Pin
valikac9-May-02 11:30
valikac9-May-02 11:30 

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.