/* * TEMPLATE.H * * CUSTOMIZATION INSTRUCTIONS: * * Copyright (c)1992 Microsoft Corporation, All Right Reserved * * * 1. Replace with the uppercased filename for this file. * Lowercase the .h entry * * 2. Replace with the mixed case dialog name in one word, * such as InsertObject * * 3. Replace with the mixed case dialog name in multiple * words, such as Insert Object * * 4. Replace with the suffix for pointer variables, such * as the IO in InsertObject's pIO or the CI in ChangeIcon's pCI. * Check the alignment of the first variable declaration in the * Dialog Proc after this. I will probably be misaligned with the * rest of the variables. * * 5. Replace with the uppercase structure name for this * dialog sans OLEUI, such as INSERTOBJECT. Changes OLEUI * in most cases, but we also use this for IDD_ as the * standard template resource ID. * * 6. Find fields and fill them out with whatever is appropriate. * * 7. Delete this header up to the start of the next comment. * */ /* * .H * * Internal definitions, structures, and function prototypes for the * OLE 2.0 UI dialog. * * Copyright (c)1992 Microsoft Corporation, All Right Reserved */ #ifndef #define // UFILL> Move from here to INTERNAL to to OLE2UI.H typedef struct tagOLEUI { // These IN fields are standard across all OLEUI dialog functions. DWORD cbStruct; //Structure Size DWORD dwFlags; //IN-OUT: Flags HWND hWndOwner; //Owning window LPCTSTR lpszCaption; //Dialog caption bar contents LPFNOLEUIHOOK lpfnHook; //Hook callback LPARAM lCustData; //Custom data to pass to hook HINSTANCE hInstance; //Instance for customized template name LPCTSTR lpszTemplate; //Customized template name HRSRC hResource; //Customized template handle // Specifics for OLEUI. All are IN-OUT unless otherwise spec. } OLEUI, *POLEUI, FAR *LPOLEUI; // API Prototype UINT FAR PASCAL OleUI(LPOLEUI); // flags #define F_SHOWHELP 0x00000001L // specific error codes // DEFINE AS OLEUI_ERR_ (OLEUI_ERR_STANDARDMAX+n) // Dialog identifiers // FILL IN DIALOG IDs HERE // INTERNAL INFORMATION STARTS HERE // Internally used structure typedef struct tag { //Keep this item first as the Standard* functions depend on it here. LPOLEUI lpO; //Original structure passed. UINT nIDD; // IDD of dialog (used for help info) /* * What we store extra in this structure besides the original caller's * pointer are those fields that we need to modify during the life of * the dialog but that we don't want to change in the original structure * until the user presses OK. */ } , *P; // Internal function prototypes // .CPP BOOL FAR PASCAL DialogProc(HWND, UINT, WPARAM, LPARAM); BOOL FInit(HWND hDlg, WPARAM, LPARAM); #endif //