Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows API dialogs without using resource files

Tags:

I'm trying to create a dialog box using C++ and the windows API, but I don't want the dialog defined in a resource file. I can't find anything good on this on the web, and none of the examples I've read seem to define the dialog programmatically.

How can I do this?

A simple example is fine. I'm not doing anything complicated with it yet.

like image 545
conmulligan Avatar asked Sep 14 '08 20:09

conmulligan


People also ask

What is the purpose of dialogue boxes when it appears on the screen?

A dialog box is a temporary window an application creates to retrieve user input. An application typically uses dialog boxes to prompt the user for additional information for menu items.

What are windows toolbars and dialogue boxes?

The Windows and dialog boxes toolbar contains buttons for displaying commonly used dialog boxes and windows. They are available according to context.


1 Answers

Raymond Chen wrote a few posts about the dialog manager:

  • The dialog manager, part 1: Warm-ups
  • The dialog manager, part 2: Creating the frame window
  • The dialog manager, part 3: Creating the controls
  • The dialog manager, part 4: The dialog loop
  • The dialog manager, part 5: Converting a non-modal dialog box to modal
  • The dialog manager, part 6: Subtleties in message loops
  • The dialog manager, part 7: More subtleties in message loops
  • The dialog manager, part 8: Custom navigation in dialog boxes
  • The dialog manager, part 9: Custom accelerators in dialog boxes
like image 76
Mladen Janković Avatar answered Sep 21 '22 10:09

Mladen Janković