CDialog Help urgent????
-
hi, well the problem i am facing is that i have a class say A..which has the following declaration class A: public CFontDialog { .... } now in the initinstance of the dialog i want to get the resource id of dialog. Can anyone please help me on the issue! PS. i have tried GetWindowLong( GWL_ID )... but it returns 0.:confused:...... please help. lid.
-
hi, well the problem i am facing is that i have a class say A..which has the following declaration class A: public CFontDialog { .... } now in the initinstance of the dialog i want to get the resource id of dialog. Can anyone please help me on the issue! PS. i have tried GetWindowLong( GWL_ID )... but it returns 0.:confused:...... please help. lid.
-
hi, well the problem i am facing is that i have a class say A..which has the following declaration class A: public CFontDialog { .... } now in the initinstance of the dialog i want to get the resource id of dialog. Can anyone please help me on the issue! PS. i have tried GetWindowLong( GWL_ID )... but it returns 0.:confused:...... please help. lid.
Hi It might be in the CDialog::m_lpszTemplateName parameter. HTH Martin
-
Hi It might be in the CDialog::m_lpszTemplateName parameter. HTH Martin
-
well as i told earlier... i have this class manually defined and not defined against a dialog resource.... the member A::IDD you mentioned is defined by the new dlg wizard and is not present in case of CCustomDialogs more specifically CFontDialog ... so if you have anything else in mind. please update me.. thankx for the time and consideration. lid
-
Hi, i have checked the m_lpszTemplateName parameter but its value is NULL..... anything else..??? please:confused:
Hi What are you trying to do here? The Dialog Resource is only used to create the dialog and once the dialog is running it's not accessed again - the same principle (barring contrived cases) applies to any dialog created from a resource template. If you're trying to override the Font Dialog's default resource layout with your own, set the CFontDialog's m_cf.lpTemplateName data member to your adapted version of the standard Choose Font resource and work from there. Martin
-
Hi What are you trying to do here? The Dialog Resource is only used to create the dialog and once the dialog is running it's not accessed again - the same principle (barring contrived cases) applies to any dialog created from a resource template. If you're trying to override the Font Dialog's default resource layout with your own, set the CFontDialog's m_cf.lpTemplateName data member to your adapted version of the standard Choose Font resource and work from there. Martin
Hi, This is almost exactly what i m trying to do over here... i have added my custom controls to the standard font dialog....? the problem is that when the windows DPI is changed to 120 some of the controls starts overlapping or the text is just bigger than the size of the control....i have found a code on code project which when provided the ID of the dialog makes all the controls of the dialog bigger according to the current DPI. So, i was hoping to get the resource of the dialog somewho and pass it to the code downloaded from code project..... BTW if the idea is silly :) and is not workable... do tell me ...so i could search for some other solution. lid
-
well as i told earlier... i have this class manually defined and not defined against a dialog resource.... the member A::IDD you mentioned is defined by the new dlg wizard and is not present in case of CCustomDialogs more specifically CFontDialog ... so if you have anything else in mind. please update me.. thankx for the time and consideration. lid