Dlgbox-w32api-2009 - Dialog Boxes More notes at:

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Dialog Boxes More notes at: http://www.cs.binghamton.edu/~reckert/360/class9.htm Dialog Boxes ? Popup child windows created by Windows ? Principal I/O mechanism in Windows ? Contain several child window controls ? Layout & what it does is are predefined (template--a resource) ? How it does is determined by a "Dialog box procedure" ? Destroyed immediately after use
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
? 1. Set up the template in the resources (.rc file) Specifies controls used, their style/layout Can be prepared "visually" with Visual Studio dialog box editor Or "manually" with a text editor ? 2. (Win32 API) Write the dialog box procedure Code to carry out dialog box's tasks Placed in .cpp file Provides message-processing capability Messages from controls handled inside this procedure Messages can be sent to the dialog box A callback function like main window procedure WndProc() But not the same Part of the callback is inside Windows
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/04/2009 for the course ER CS 360 taught by Professor Reckert during the Spring '09 term at Istanbul Technical University.

Page1 / 6

Dlgbox-w32api-2009 - Dialog Boxes More notes at:

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online