Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Color picker not 120 dpi proof
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Color picker not 120 dpi proof

 Post Reply Post Reply
Author
Message
maartevan View Drop Down
Newbie
Newbie


Joined: 09 December 2003
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote maartevan Quote  Post ReplyReply Direct Link To This Post Topic: Color picker not 120 dpi proof
    Posted: 08 July 2004 at 1:56pm
The color pcker is not large font proof.
When I change the windows font to 120 dpi the custom color tab
will not show the edit fields for green and blue.

This problem is reproduceable with the color picker example.
Back to Top
Kenneth View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 May 2004
Location: United States
Status: Offline
Points: 256
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kenneth Quote  Post ReplyReply Direct Link To This Post Posted: 10 July 2004 at 11:46am

Its been this way as far as I can remember.  I don't think they know 120dpi even exits within Windows.  To fix, modify XTColorDialog.cpp as follows:

 BOOL CXTColorDialog::OnInitDialog()
 {
 BOOL bResult = CPropertySheet::OnInitDialog();
 int big  = 0;
 int size = LOWORD(GetDialogBaseUnits());
 if(size == 10)
      big = 1;
 // TODO: Add your specialized code here
 if(!big)
      SetWindowPos(NULL,0,0,329,341,SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE);
      else
      SetWindowPos(NULL,0,0,400,400,SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE);
 if(!big)
      GetTabControl()->SetWindowPos(NULL,0,0,226,280,SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE);
      else
      GetTabControl()->SetWindowPos(NULL,0,0,292,340,SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE);
.
.
.
.

 

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.219 seconds.