Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
Source/CModalDialog.h
/* |
File: CModalDialog.h |
Contains: xxx put contents here xxx |
Version: xxx put version here xxx |
Copyright: © 1999 by Apple Computer, Inc., all rights reserved. |
File Ownership: |
DRI: xxx put dri here xxx |
Other Contact: xxx put other contact here xxx |
Technology: xxx put technology here xxx |
Writers: |
(BWS) Brent Schorsch |
Change History (most recent first): |
<SP1> 7/1/99 BWS first checked in |
*/ |
#ifndef __CModalDialog__ |
#define __CModalDialog__ |
//¥ ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ Includes |
#ifndef __MENUS__ |
#include <Menus.h> |
#endif |
//¥ ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ Public Definitions |
//¥ ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ Public Types |
class CModalDialog |
{ |
protected: |
DialogPtr dialog; |
short numBaseItems; |
public: |
CModalDialog(const short inDialogID); |
~CModalDialog(); |
void Show(void); |
void Hide(void); |
void MakeCurrentPort(void); |
void SetDefaultItem(const short inWhichItem); |
void SetCancelItem(const short inWhichItem); |
short GetItemValue(const short inWhichCheckBox); |
void GetEditText(const short inWhichItem, Str255 outText); |
void GetStaticText(const short inWhichItem, Str255 outText); |
MenuHandle GetItemMenuHandle(const short inWhichItem); |
void GetItemValue(const short inWhichCheckBox, const short inValue); |
void SetEditText(const short inWhichItem, Str255 inText); |
void SetStaticText(const short inWhichItem, Str255 inText); |
void SelectEditText(const short inWhichItem, const short inStart, const short inEnd); |
}; |
//¥ ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ Public Variables |
//¥ ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ Public Functions |
#ifdef __cplusplus |
extern "C" { |
#endif |
#ifdef __cplusplus |
} |
#endif |
#endif |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-10-14