Re: Creating Property Pages using CreateIndirect

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



This might help,

Maybe use DLGTEMPLATEEX instead?

I was looking at DLGTEMPLATEEX and DLGITEMTEMPLATEEX and noticed the
similarity between Titles.

Title
Specifies a variable-length array of 16-bit elements that contains the
initial text or resource identifier of the control. If the first element of
this array is 0xFFFF, the array has one additional element that specifies
the ordinal value of a resource, such as an icon, in an executable file. You
can use a resource identifier for controls, such as static icon controls,
that load and display an icon or other resource rather than text.
If the first element is any value other than 0xFFFF, the system treats the
array as a null-terminated Unicode string that specifies the initial text.

Title
Specifies a null-terminated Unicode string that contains the title of the
dialog box. If the first element of this array is 0x0000, the dialog box has
no title and the array has no other elements.

Good Luck,
"shida" <atifhashmi@xxxxxxxxx> wrote in message
news:1131037450.656068.140160@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Dear All,
>
> I am trying to create property pages dynamically without using the
> wizard. I have created a dialog using the DLGTEMPLATE structure and
> sent it to the createindirect function which creates a dialog for me.
> Th eonly problem is that I havenot been able to figure out how to
> assign a resource ID to the dialog that I create.
>
> Once I have the resource ID, I can pass it to a class derived from a
> property page and create a property page.
>
> Could Anybody help me out in this situation.
>
> Thanks and Regards,
> Atif Gul Hashmi
>


.



Relevant Pages

  • Re: Dialog resource question
    ... that Specifies the window class of the control. ... of this array is any value other than 0xFFFF, ... If the first element is 0xFFFF, ...
    (microsoft.public.win32.programmer.ui)
  • Problem on Array with C!
    ... 1-Declare an array of length of 10 and read integers into the elements ... 2-Similear as above,but this time insert the first element of the array ... of the array from keyboard.then read an integer which specifies the ... according to the repetition number,print the contents of the array. ...
    (comp.programming)
  • Problem on Array
    ... 1-Declare an array of length of 10 and read integers into the elements ... 2-Similear as above,but this time insert the first element of the array ... of the array from keyboard.then read an integer which specifies the ... according to the repetition number,print the contents of the array. ...
    (comp.lang.c)
  • RE: excel formulas
    ... converts a number from euros to a euro member ... Counts the cells that contain numbers in a database ... Specifies a logical test to perform ... Looks in the top row of an array and returns the value of the indicated cell ...
    (microsoft.public.excel.misc)
  • Re: excel formulas
    ... member currency, or converts a number from one euro member currency ... Counts the cells that contain numbers in a database ... Specifies a logical test to perform ... Looks in the top row of an array and returns the value of the ...
    (microsoft.public.excel.misc)