How to create a MFC Application free from DPI Changes RRS feed

  • Pergunta

  • Hi,

    I have created a SDI application which has a formview and many other controls, it works fine in 96 DPI, when I change the DPI to 120 & above the application controls change there location.

    Can anyone explain what can be the solution to this.

    I have done all hardcoding for placing the dialogs

    m_ABCi.MoveWindow( Xpos, Ypos+2, 290, 22 );

    is there any MFC API which takes cares of scaling & DPI changes.

    sexta-feira, 13 de fevereiro de 2009 05:45