Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Win 2 API - <b>dlgtemplate</b> structure for indirect functions http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
DLGTEMPLATE          Structure For Indirect Functions

typedef struct tagDLGTEMPLATE
        {
          long dtStyle;
          BYTE dtItemCount; /* Number of items list follows */
          int dtX;  /* Coordinates of upper left corner */
          int dtY; /* Coordinates of upper left corner */
          int dtCX; /* Width */
          int dtCY; /* Height */
          char *dtResourceName[]; /* ASCIIZ Name of resource */
          char *dtClassName[]; /* ASCIIZ Register class name */
          char *dtCaptionText[]; /* ASCIIZ Caption Text */
        }DLGTEMPLATE;

        Followed by item list (one per control):

typedef struct tagDLGITEM
        {
          int dtilX;  /* Coordinates of upper left corner */
          int dtilY;  /* Coordinates of upper left corner */
          int dtilCX; /* Width */
          int dtilCY; /* Height */
          int dtilID; /* Control ID */
          long dtilStyle; /* Control Style */
          char *dtilText; /* ASCIIZ String */
          BYTE dtilInfo; /* Extra bytes after this item */
        }DLGITEM;


Note:

                    This doesn't seem to be defined in windows.h,
                    CreateDialogIndirect and DialogBoxIndirect use
                    LPSTR for the pointer to this! Programmer's reference
                    doesn't show pointer for strings!

See Also: CreateDialogIndirect DialogBoxIndirect

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson