|
-
February 8th, 2006, 06:30 AM
#9
Re: screen difference according to windows XP
You don't understand what I want to mean,
Sorry for bad explaining me....
In fact, I want all my CDialog to keep exactly size I gave when I developped it and this, whatever is it's configuration (little or big font ....)
On other forum, developper gave me this code witch seems working when I change font size on my pc but not on these of my boss
Code:
int CMyDialog::DoModal()
{
CDialogTemplate dlgTemp;
int nResult;
// lecture du template d'origine
if (!dlgTemp.Load(MAKEINTRESOURCE(IDD))) return -1;
// fonte par defaut
dlgTemp.SetFont("MS Sans Serif", 8);
// pointeur sur le dialogue template modifié
LPSTR pdata = reinterpret_cast<LPSTR>(GlobalLock(dlgTemp.m_hTemplate));
m_lpszTemplateName = NULL;
InitModalIndirect(pdata);
// appel DoModal
nResult = (int) CDialog::DoModal();
// liberation du template modifié
GlobalUnlock(dlgTemp.m_hTemplate);
return nResult;
}
Writting dlgTemp.SetFont("MS Sans Serif", 12); show me the same problem he has
Last edited by FireJocker; February 8th, 2006 at 06:34 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|