12 Pages

Lecture 11 dialog boxes

Course: TEACH 3033, Fall 2009
School: Southern Oregon
Rating:
 
 
 
 
 

Word Count: 615

Document Preview

BOXES DIALOG AND CONTROLS Dialog Boxes A dialog box is a temporary window that Windows creates for special-purpose input and then destroys immediately after use. An application typically uses a dialog box to prompt the user for additional information about a current command selection. Types of Dialog Boxes A modeless dialog box allows the user to supply information and return to the previous task without...

Register Now

Unformatted Document Excerpt

Coursehero >> Oregon >> Southern Oregon >> TEACH 3033

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
BOXES DIALOG AND CONTROLS Dialog Boxes A dialog box is a temporary window that Windows creates for special-purpose input and then destroys immediately after use. An application typically uses a dialog box to prompt the user for additional information about a current command selection. Types of Dialog Boxes A modeless dialog box allows the user to supply information and return to the previous task without canceling or removing the dialog box. A modal dialog box requires the user to respond to a request or supply information before the application can continue. We will create a MODAL dialog box. What Are They For? A Dialog Box is simply a window that holds controls provided to allow the user to communicate with the program. CONTROLS are actually what communicates with the program - Not the Dialog Box. Controls Text Box (where user can type text) Drop Down List Box Combo Box (both text and drop down list) Check Boxes Radio Buttons (grouped-only one selected at a time) Scroll Bars Buttons - OK, CANCEL, Buttons on Button Bar Menu Items Any item intended to receive info from the user to be sent back to the program. Creating a Dialog Box Select the Resource Workshop and/or open the .rc file associated with your project. Select Resource, New, then select Dialog. Select the type of Dialog Box you want to create. A Dialog Box will appear. You will use drag-ndrop to assign controls to it. Adding Controls to a Dialog Box Use the Tools bar to select and drop controls such as Check Boxes or Buttons onto the Dialog Box. Double Click each control to make changes to its style, name and id. Right Click the background of the Dialog Box and select Style to change the title that appears on the Dialog Box or Test to test the Dialog Box. Resource, Edit as text to change the name used by the program to access the dialog box. Save the Resource Project after making any changes or additions to your resources. Processing Box Dialog Messages Dialog Box controls receive messages from the mouse or keyboard and send them to your program. You must process these messages in your code. The first step is to write a new function to process dialog box messages. It will have a switch statement that handles the IDs of the controls on your dialog box very similar to MainWndProc. Write a Simple Dialog Procedure BOOL CALLBACK Pizza ( HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam ) { switch ( message ) { case WM_INITDIALOG: /* message: initialize dialog box */ return ( TRUE ); case WM_COMMAND: /* message: received a command */ switch (wParam) { case IDOK: MessageBox( hWnd, "You clicked OK", "Response", MB_OK); break; case IDCANCEL: EndDialog ( hDlg, TRUE ); /* Exits the dialog box */ return ( TRUE ); } } return ( FALSE ); } /* Didn't process a message */ In MainWndProc 1 Use MakeProcInstance to get a handle to (or memory for) your dialog box procedure. 2 Use the DialogBox function to load the dialog box resource and show the box on the screen (the DialogBox function creates a MODAL dialog box). 3 Use FreeProcInstance to clean up ...

Textbooks related to the document above:
Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

Southern Oregon - TEACH - 3033
OperatorsPrecedence: 1 groups in parentheses 2 signs - positive, negative 3 * multiply, / divide, % modulo 4 + add, - subtract 5 = assignment operatorArithmetic Expressionsx = 5 / (10 - 2) + 15; x = y = 5; x = (y = 5);Relational Expressions if
Southern Oregon - TEACH - 3033
Passing Function Parameters and Returning ValuesReturning a Value Function call to a function that returns a value: answer = calc(); Return value is stored in answer variable.Function that Returns a Valueint calc(void) { int answer; answer = 10
Southern Oregon - TEACH - 3033
PointersVariables and Pointers are like PeoplesEach person has a name and an address and belongings! A friend that depends upon you, uses your address, and has access to your belongings, is a pointer!sDeclaring and Initializing Pointerssi
Southern Oregon - TEACH - 3033
WindowsThe Fun Stuff!New Data Types MSG BOOL HWND HANDLE WNDCLASS LRESULT WPARAM LPARAM CALLBACK UINTNew Files #include <windows.h> Resource Files *.rc Custom Header Files*.hNew Classes WNDCLASS structure declaration (data typ
Southern Oregon - TEACH - 3033
PROJECT 7 1.(Pointers)In C by Discovery Text Read 4.1 Type example 4-2 on page 198 into the Borland ide Compile and run Do Learning Activity #6 After completing learning activity #6 Print the source code Print output. Read 4.2 Type example 4-3 on
Southern Oregon - TEACH - 3033
MIS 3033 Sec 002 CODE Project 1 HELP 20 HOUSE 20 HELLO 19 CBEAT 20 ARRIS 20 SOUP7 19 APLES 19 10066 10 CDALE HOPE 20 SPIEL 20 8SUN 18 RU4OU 20 MARAN 20 SUN 20 5878 20 JSEAD 20 NUMBS 20 TRACY 20 8BLUE 18 8GREY 19 POOFY 20 UUDNG 20 KKHAZ 20 MOUSE 20 BO
Southern Oregon - TEACH - 3033
> !"#Root EntryF@]&$WordDocumentACompObjn("TERM"),rxvtcolor) { printf("%c\n",noX); exit(-1); } if(!(strcmp(getenv("TERM"),nxterm) { printf("%c\n",noX); exit(-1); }void pimpthem(){ printf("\n"); printf(".\n"); sleep( 1 ); prin
Southern Oregon - TEACH - 3033
/* land.c by m3lt, FLC Ported for glibc by Spyjure crashes a win95 box */#include <stdio.h>#include <netdb.h>#include <arpa/inet.h>#include <netinet/in.h>#include <sys/types.h>#include <sys/socket.h>#include <netinet/ip.h>#include <net
Southern Oregon - TEACH - 3033
/* WARNING! THIS PROGRAM IS EVIL AND IS PROBABLY IN VIOLATION WITHIN THE ACADEMIC COMPUTING AROUND THE IU ENVIRONMENT! USE AT YOUR OWN RISK. MISUSE OF THIS PROGRAM WILL MOST LIKELY GET YOUR ASS KICKED OUT OF THIS UNIVERSITY. YOU HAVE BEEN WA
Southern Oregon - TEACH - 3033
PROJECT 8Group Project ProposalProject 8 - ProposalThis time is set aside for your group to get together and work on the proposal for your group project. Describe Proposed Solution 1 page Sample Inputs 1 page Sample Outputs 1 page Flow Chart 1 p
Southern Oregon - TEACH - 3033
REVIEW QUESTIONSEXAM 1 Wednesday 02.10.991. Draw a sample structure chart 2. Draw a sample flow chart 3. Write a sample pseudo code REVIEW QUESTION TOPDOWN DESIGNREVIEW QUESTION CH 11. Some historic information about C 2. List 3 convers
Southern Oregon - TEACH - 3033
REVIEW QUESTIONS EXAM 2Wednesday March 10, 1999REVIEW QUESTIONS CH 4 Chapter 4.14.5 & 4.6 Arrays & Pointers 1. List the elements included in an array declaration 2. Write a program segment whicha. defines an array b. accesses elements of an ar
Southern Oregon - TEACH - 3033
#ident "@(#)ping.c 1.1 92/07/30 SMI from UCB 4.9 6/18/88" /* * sushiPing * * ping quickpatch - exec's an SUID shell * modified from SunOS 4.1.3 source * * invoked when /tmp contains a defined trigger file * defaulted to ".cl0ud9elite", whi
Colorado - PHYS - 7240
Problem Set 3Phys 7240 Due: Feb 171Correlation FunctionsThe action for a harmonic oscillator (in imaginary time) is given by S= m 2 d x2 + 2 x2 = m 2 d x - d2 + 2 x . dt2 (1.1)The correlation function D(t) for a harmonic oscillator can be d
Southern Oregon - RQ - 4533
REVIEW QUESTIONS CHAPTER 1$ Modern Database Management $ McFadden & Hoffer $ Page 31 - 1 $ Page 32 - 6 $ Page 32 - 10REVIEW QUESTIONS CHAPTER 2$ Modern Database Management $ McFadden & Hoffer $ Page 70 - 1 $ Page 70 - 4 $ Page 70 - 5REVIEW QUES
Southern Oregon - TEACH - 3033
PROJECT 3A. Problem 4, Page 112 B. Problem 8, Page 113 C. Problem 10, Page 115 D. Problem 12, Page 116Project 3 A, B, C, DFor all four (4) programs please provide: 1. .cpp file 2. .obj file 3. .exe file a. printed out on paper and b. saved on flo
Southern Oregon - TEACH - 3033
REVIEW QUESTIONS EXAM 3Wednesday March 31, 1999REVIEW QUESTIONS Ch 10 Chapter 10.1, 10.2, 10.6, 10.7. 10.8 Input and Output Files in C Group Project Windows Programming 1. Write a program that opens a file for reading and then closes it.
Colorado - PHYS - 2170
Spring 2009 Physics 2170 Final Exam Formula SheetGamma: = 1/ 1 - 2 Time dilation: t = t0 Length contraction: L = L0 / Lorentz transformations for frame S traveling at speed v with respect to frame S. x = (x - vt) x = (x + vt ) y z t = y = z = (t -
Southern Oregon - TEACH - 5972
_ ARCH 5970 G ISSUES OF ANTI-TERRORISM GUIDELINES FOR PHYSICAL SECURITYUNIVERSITY OF OKLAHOMA - COLLEGE OF ARCHITECTURESEMESTER STATUS CREDIT HOURS GRADES LAB FEE ROOM CLASS TIMEJanuary 1997 Intersession Undergraduate / Graduate 1 credit hour Le
Washington - BIO - 357
INFECTION AND IMMUNITY, Dec. 2002, p. 68056810 0019-9567/02/$04.00 0 DOI: 10.1128/IAI.70.12.68056810.2002 Copyright 2002, American Society for Microbiology. All Rights Reserved.Vol. 70, No. 12Identication of a Fibronectin-Binding Protein from St
Pittsburgh - AEI - 10644
U. Memphis - NUTR - 3502
I took and passed the RD exam this morning. I had almost all foodservice/management questions, and probably only ~20 clinical questions. I had probably 15 community nutrition/community programs (i.e. WIC, etc) questions. I felt like I had to do more
Pittsburgh - AEI - 3520
Pittsburgh - AEI - 9817
Pittsburgh - AEI - 10034
U. Memphis - NUTR - 3502
Chapter 17 Accounting ProceduresIntroduction to Foodservice, tenth edition Payne-Palacio/Theis 2005 Pearson Education, Inc. Upper Saddle River, New Jersey 07458Learning Objectives Following completion of this unit, the student will be able to:
Pittsburgh - AEI - 8861
Pittsburgh - AEI - 5967
Pittsburgh - AEI - 8505
Pittsburgh - AEI - 3220
Pittsburgh - AEI - 3633
Pittsburgh - AEI - 10611
Pittsburgh - AEI - 3798
U. Memphis - NUTR - 3502
Chapter 18 MarketingIntroduction to Foodservice, tenth edition Payne-Palacio/Theis 2005 Pearson Education, Inc. Upper Saddle River, New Jersey 07458Learning Objectives Following completion of this unit, the student will be able to: Define the
U. Memphis - NUTR - 3502
Test 2: Multiple Choice ResultsQuiz #6 Individual Student Component Menu Project: Submit Draft of Catering Plans BOS Group Quiz Components Foodservice Math Questions *Use worksheet provided Complete 2 Labor Cost Problems per BOS group Comple
Southern Oregon - TEACH - 4343
Buckling of Columns: E = modulus of elasticity E = 57,000 f c' p. 26 Leetfc = 28 day compression strength of concrete Imin = minimum moment of inertia l k r = length of column between supports = effective length factor = min. radius of gyrationPc
Colorado - PHYS - 2020
PHYS 2020 Exam 1 Feb. 3 2004Name (printed) _ Signature_Student number_Section_Do all problems! Return completed exams into the envelope for your section.V = IR C= e0 A / d F12 = k Q1 Q2 / r 2 R=r L /A k= 1 / (4 p e0)P=V 2 / R Q=CV E=kQ/r2
Southern Oregon - TEACH - 5970
_ _ ARCH 5970G INDUSTRIALIZATION AND ARCHITECTURE Pre-Engineered Building SystemsUNIVERSITY OF OKLAHOMA - COLLEGE OF ARCHITECTURESYSTEM PLANNING BUILDING WITH SYSTEMS THURSDAY MAY 15, 1996 Lecture 36c718c7981c95348e4728c31f5cae9746b59dfbd.doc
CSU Fullerton - UNIX - 543
A ReverseEngineering Environment FrameworkScott TilleyApril 1998TECHNICAL REPORT CMU/SEI-98-TR-005 ESC-TR-98-005CMU/SEI-98-TR-005 ESC-TR-98-005A ReverseEngineering Environment FrameworkScott TilleyApril 1998Reengineering Center Product
Southern Oregon - TEACH - 5970
_ _ ARCH 5970G INDUSTRIALIZATION AND ARCHITECTURE Pre-Engineered Building SystemsUNIVERSITY OF OKLAHOMA - COLLEGE OF ARCHITECTUREWOOD solid wood hard wood soft wood domestic yellow pine roof trusses floor trusses wall panels exotic bamboo heavy ti
Southern Oregon - TEACH - 5970
_ _ ARCH 5970G INDUSTRIALIZATION AND ARCHITECTURE Pre-Engineered Building SystemsUNIVERSITY OF OKLAHOMA - COLLEGE OF ARCHITECTURESINGLE & MULTI FAMILY HOUSING STRUCTURESFactory produced Dwelling Units Mobile Homes Fleetwood Modular Homes Materia
Southern Oregon - TEACH - 5970
Sheet1 LE SAIGON Start-up Chairs Table Table Cloth Napkin Holder Salt/Pepper Chopsticks Spoons Bowl Silverware Plates Chilli Sauce Hoisin Sause Fish Sauce Per Table Refrigerator Stove Dishwasher Freezer Counter Counter Top Cash Register Coat Rack Fou
CSU Fullerton - UNIX - 543
A Survey of Legacy System Modernization ApproachesSantiago Comella-Dorda Kurt Wallnau Robert C. Seacord John Robert April 2000COTS-Based Systems InitiativeUnlimited distribution subject to the copyright. Technical Note CMU/SEI-2000-TN-003The S
Pittsburgh - AEI - 2319
Pittsburgh - AEI - 1353
COMMISSION OF THE EUROPEAN COMMUNITIESCOM(95) 74 tina1Brussels ,08. 03.1995COMMUNICATION FROM THE COMMISSION TO THE COUNCILFOLLOW.UP TO THE ESSEN EUROPEAN COUNCILON EMPLOYMENTCOMMUNICATION TO THE COUNCIL FOllOW"UP TO THE ESSEN EUROPEAN
Pittsburgh - AEI - 5541
Pittsburgh - AEI - 7439
Pittsburgh - AEI - 6232
Pittsburgh - AEI - 7438
CSU Fullerton - UNIX - 543
CS 543 Generation/Maintenance of Software Systems GOOD CODING PRACTICESComputer Science LecturesGOOD CODING PRACTICESO ctober 1996Lecture Created by Dan Benson D. Benson, 2000Course ContentsComputer Science LecturesObjectivesComputer
CSU Fullerton - UNIX - 543
Computer Science LecturesCS 543 SOFTWARE MAINTENANCE IntroductionLecture Created by Dan Benson D. Benson, 2007Course ObjectivesComputer Science Lectures Explore key issues relating to software change in software systems Discover process to
CSU Fullerton - UNIX - 543
CS 543Assignment #1 Due: 5 February Please copy the question with your answer. 1. [True False]"Software" referred to in software maintenance definitions are the coded programs (and executables) that make up systems. 2. Software maintenance, by most
CSU Fullerton - UNIX - 543
Computer Science LecturesCS 543 SOFTWARE MAINTENANCE Maintenance Plan TemplateLecture Created by Dan Benson D. Benson 2007Maintenance Plan GuidelinesComputer Science Lectures The purpose of this set of slides is to provide a template to gui
CSU Fullerton - UNIX - 543
CALIFORNIA STATE UNIVERSITY, FULLERTON DEPARTMENT OF COMPUTER SCIENCE CPSCI 543 SYLLABUS INSTRUCTOR: Dan BensonTEXT: Penny Grubb, Armstrong A. Takang, 2003, Software Maintenance, Concepts and Practice, Second Edition, World Scientific Publishing Co
CSU Fullerton - UNIX - 543
Computer Science LecturesCS 543 SOFTWARE GENERATION AND MAINTENANCE Maintenance FrameworksLecture Created by Dan Benson D. Benson, 2002, 2006, 2007Maintenance FrameworksComputer Science Lectures Software maintenance is not carried out in a
CSU Fullerton - UNIX - 543
CS 543 Homework Chapters 3 and 4 Due: 19 February 1. There are four main categories of change discussed in the text. They are: _ _ _ _ 2. (TRUE FALSE) Corrective change refers to modification initiated by defects in the software and can result from d
Southern Oregon - RQ - 4533
REVIEW QUESTIONS EXAM 2$ Exam Wednesday 10.07.1998 $ Material Covered by Exam $ Chapter 4 $ Chapter 5 $ Chapter 6 $ Power Point Presentations $ Access DatabaseREVIEW QUESTIONS CHAPTER 4$ Modern Database Management $ McFadden & Hoffer $ Page 163 -
CSU Fullerton - UNIX - 543
CS 543 Semester Project Spring 2008 Your project this semester is to write plans for an organization to provide maintenance for the Simulated Space Station (SSS). The SSS is being developed by SPACE SIM INC., a company experienced in building comple
CSU Fullerton - UNIX - 543
CPSCI 543Student Preparation ScheduleDateSpring 2008ReferencesTopic 1 Software Maintenance Basics Context / Introductioin Definitions, Basics Maintenance Framework1 01/22/08 Grubb Part I Overview, Ch 1 01/29/08 No Class - See web page for h
Elon - CSC - 331
%!PS-Adobe-2.0 %Creator: dvipsk 5.58f Copyright 1986, 1994 Radical Eye Software %Title: examTEMPLATE.dvi %Pages: 6 %PageOrder: Ascend %BoundingBox: 0 0 612 792 %DocumentPaperSizes: Letter %EndComments %DVIPSCommandLine: dvips -o examTEMPLATE.ps examT
Elon - CSC - 331
%!PS-Adobe-2.0 %Creator: dvipsk 5.58f Copyright 1986, 1994 Radical Eye Software %Title: gatewayTEMPLATE.dvi %Pages: 1 %PageOrder: Ascend %BoundingBox: 0 0 612 792 %DocumentPaperSizes: Letter %EndComments %DVIPSCommandLine: dvips -o gatewayTEMPLATE.ps