Ignore:
Timestamp:
Sep 4, 1999, 9:42:30 PM (26 years ago)
Author:
sandervl
Message:

Dialog changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/new/win32dlg.h

    r741 r821  
    1 /* $Id: win32dlg.h,v 1.3 1999-08-30 11:59:53 sandervl Exp $ */
     1/* $Id: win32dlg.h,v 1.4 1999-09-04 19:42:29 sandervl Exp $ */
    22/*
    33 * Win32 Dialog Code for OS/2
     
    1717#ifdef __cplusplus
    1818
     19#define DF_END  0x0001
     20
     21  /* Dialog control information */
     22typedef struct
     23{
     24    DWORD      style;
     25    DWORD      exStyle;
     26    DWORD      helpId;
     27    INT        x;
     28    INT        y;
     29    INT        cx;
     30    INT        cy;
     31    UINT       id;
     32    LPCSTR     className;
     33    LPCSTR     windowName;
     34    LPVOID     data;
     35} DLG_CONTROL_INFO;
     36
     37/* Dialog template */
     38typedef struct
     39{
     40    DWORD      style;
     41    DWORD      exStyle;
     42    DWORD      helpId;
     43    UINT       nbItems;
     44    INT        x;
     45    INT        y;
     46    INT        cx;
     47    INT        cy;
     48    LPCSTR     menuName;
     49    LPCSTR     className;
     50    LPCSTR     caption;
     51    WORD       pointSize;
     52    WORD       weight;
     53    BOOL       italic;
     54    LPCSTR     faceName;
     55    BOOL       dialogEx;
     56} DLG_TEMPLATE;
     57
    1958class Win32Dialog : public Win32BaseWindow
    2059{
    2160public:
    22          Win32Dialog();
     61         Win32Dialog(HINSTANCE hInst, LPCSTR dlgTemplate, HWND owner,
     62                     DLGPROC dlgProc, LPARAM param, BOOL isUnicode);
     63
    2364virtual ~Win32Dialog();
     65
     66       LRESULT  DefDlgProcA(UINT Msg, WPARAM wParam, LPARAM lParam);
     67       LRESULT  DefDlgProcW(UINT Msg, WPARAM wParam, LPARAM lParam);
     68
     69       LRESULT  DefDlg_Epilog(UINT msg, BOOL fResult);
    2470
    2571virtual  ULONG  MsgOS2Create(HWND hwndOS2, ULONG initParam);
     
    2975
    3076protected:
     77        BOOL    DIALOG_Init(void);
     78        BOOL    getCharSizeFromDC( HDC hDC, HFONT hFont, SIZE * pSize );
     79        BOOL    getCharSize( HFONT hFont, SIZE * pSize);
     80        LPCSTR  parseTemplate( LPCSTR dlgtemplate, DLG_TEMPLATE *result);
     81        WORD   *getControl(const WORD *p, DLG_CONTROL_INFO *info, BOOL dialogEx);
     82        BOOL    createControls(LPCSTR dlgtemplate, HINSTANCE hInst);
     83       
     84        LRESULT DefDlg_Proc(UINT msg, WPARAM wParam, LPARAM lParam);
     85        BOOL    setDefButton(HWND hwndNew );
     86        HWND    findDefButton();
     87        BOOL    saveFocus();
     88        BOOL    restoreFocus();
     89        void    setFocus(HWND hwndCtrl );
     90
    3191        // values normally contained in the standard dialog words
    3292      DLGPROC   Win32DlgProc;   //DWL_WNDPROC
     
    3494        ULONG   userDlgData;    //DWL_USER
    3595
     96   DLG_TEMPLATE dlgInfo;
     97        WORD    xUnit;
     98        WORD    yUnit;
     99        HWND    hwndFocus;
     100        HFONT   hUserFont;
     101        HMENU   hMenu;
     102        DWORD   idResult;
     103        DWORD   dialogFlags;
     104
    36105private:
     106 static BOOL    fInitialized;
     107 static int     xBaseUnit;
     108 static int     yBaseUnit;
    37109};
    38110
     111/* Built-in class names (see _Undocumented_Windows_ p.418) */
     112#define DIALOG_CLASS_NAME    "#32770"  /* Dialog */
     113#define DIALOG_CLASS_ATOM    32770     /* Dialog */
     114
     115BOOL DIALOG_Register();
     116BOOL DIALOG_Unregister();
    39117
    40118#endif //__cplusplus
Note: See TracChangeset for help on using the changeset viewer.