Click here to Skip to main content
15,886,362 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Reverse engineering GCC output - need library file (name) and path. Pin
k505427-Jan-20 6:24
mvek505427-Jan-20 6:24 
GeneralRe: Reverse engineering GCC output - need library file (name) and path. Pin
Vaclav_27-Jan-20 7:00
Vaclav_27-Jan-20 7:00 
AnswerRe: Reverse engineering GCC output - need library file (name) and path. Pin
leon de boer27-Jan-20 22:28
leon de boer27-Jan-20 22:28 
GeneralRe: Reverse engineering GCC output - need library file (name) and path. Pin
Vaclav_28-Jan-20 2:45
Vaclav_28-Jan-20 2:45 
QuestionDPI aware, I am confused Pin
Erich Jarz23-Jan-20 7:25
Erich Jarz23-Jan-20 7:25 
AnswerRe: DPI aware, I am confused Pin
Gerry Schmitz23-Jan-20 7:37
mveGerry Schmitz23-Jan-20 7:37 
GeneralRe: DPI aware, I am confused Pin
Erich Jarz23-Jan-20 8:27
Erich Jarz23-Jan-20 8:27 
GeneralRe: DPI aware, I am confused Pin
leon de boer24-Jan-20 7:05
leon de boer24-Jan-20 7:05 
Short answer you scale everything long answer you scale everything

Okay to get scale factor you need the DPI of the screen which you use Win32 API
HDC Dc = GetDC(GetDesktopWindow());       // Get Screen DC
int DpiX = GetDeviceCaps(Dc, LOGPIXELSX); // X DPI for this DC (96 for normal screen)
int DpiY = GetDeviceCaps(Dc, LOGPIXELSY); // Y DPI for this DC (96 for normal screen)
ReleaseDC(GetDesktopWindow(), Dc);	      // Release screen DC finished with it now
if (DpiX != 96 || DpiY != 96)	          // High DPI mode active
{
    /* calculate scale */
    double ScaleX = (double)DpiX/96;
    double ScaleY = (double)DpiY/96; 
}

In vino veritas

GeneralRe: DPI aware, I am confused Pin
Erich Jarz24-Jan-20 7:42
Erich Jarz24-Jan-20 7:42 
GeneralRe: DPI aware, I am confused Pin
leon de boer24-Jan-20 19:41
leon de boer24-Jan-20 19:41 
GeneralRe: DPI aware, I am confused Pin
Erich Jarz26-Jan-20 20:22
Erich Jarz26-Jan-20 20:22 
GeneralRe: DPI aware, I am confused Pin
Gerry Schmitz24-Jan-20 8:27
mveGerry Schmitz24-Jan-20 8:27 
GeneralRe: DPI aware, I am confused Pin
Richard MacCutchan23-Jan-20 9:59
mveRichard MacCutchan23-Jan-20 9:59 
Questionwin32 Radio button doesn't show when is checked Pin
coco24319-Jan-20 6:53
coco24319-Jan-20 6:53 
AnswerRe: win32 Radio button doesn't show when is checked Pin
Victor Nijegorodov19-Jan-20 7:32
Victor Nijegorodov19-Jan-20 7:32 
GeneralRe: win32 Radio button doesn't show when is checked Pin
coco24319-Jan-20 8:48
coco24319-Jan-20 8:48 
GeneralRe: win32 Radio button doesn't show when is checked Pin
Victor Nijegorodov19-Jan-20 9:29
Victor Nijegorodov19-Jan-20 9:29 
GeneralRe: win32 Radio button doesn't show when is checked Pin
coco24319-Jan-20 10:05
coco24319-Jan-20 10:05 
GeneralRe: win32 Radio button doesn't show when is checked Pin
_Flaviu19-Jan-20 19:22
_Flaviu19-Jan-20 19:22 
GeneralRe: win32 Radio button doesn't show when is checked Pin
coco24320-Jan-20 6:50
coco24320-Jan-20 6:50 
GeneralRe: win32 Radio button doesn't show when is checked Pin
_Flaviu20-Jan-20 19:41
_Flaviu20-Jan-20 19:41 
AnswerRe: win32 Radio button doesn't show when is checked Pin
Richard MacCutchan19-Jan-20 23:16
mveRichard MacCutchan19-Jan-20 23:16 
AnswerRe: win32 Radio button doesn't show when is checked Pin
Stefan_Lang20-Jan-20 4:00
Stefan_Lang20-Jan-20 4:00 
QuestionI cannot create a Release version. Pin
Member 1410515514-Jan-20 16:50
Member 1410515514-Jan-20 16:50 
AnswerRe: I cannot create a Release version. Pin
Joe Woodbury14-Jan-20 20:10
professionalJoe Woodbury14-Jan-20 20:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.