Click here to Skip to main content
14,485,669 members

C / C++ / MFC

 
AnswerRe: Reverse engineering GCC output - need library file (name) and path. Pin
k505427-Jan-20 6:24
Memberk505427-Jan-20 6:24 
GeneralRe: Reverse engineering GCC output - need library file (name) and path. Pin
Vaclav_27-Jan-20 7:00
MemberVaclav_27-Jan-20 7:00 
AnswerRe: Reverse engineering GCC output - need library file (name) and path. Pin
leon de boer27-Jan-20 22:28
Memberleon de boer27-Jan-20 22:28 
GeneralRe: Reverse engineering GCC output - need library file (name) and path. Pin
Vaclav_28-Jan-20 2:45
MemberVaclav_28-Jan-20 2:45 
QuestionDPI aware, I am confused Pin
Erich Jarz23-Jan-20 7:25
MemberErich 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
MemberErich Jarz23-Jan-20 8:27 
GeneralRe: DPI aware, I am confused Pin
leon de boer24-Jan-20 7:05
Memberleon 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
MemberErich Jarz24-Jan-20 7:42 
GeneralRe: DPI aware, I am confused Pin
leon de boer24-Jan-20 19:41
Memberleon de boer24-Jan-20 19:41 
GeneralRe: DPI aware, I am confused Pin
Erich Jarz26-Jan-20 20:22
MemberErich 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
Membercoco24319-Jan-20 6:53 
AnswerRe: win32 Radio button doesn't show when is checked Pin
Victor Nijegorodov19-Jan-20 7:32
MemberVictor Nijegorodov19-Jan-20 7:32 
GeneralRe: win32 Radio button doesn't show when is checked Pin
coco24319-Jan-20 8:48
Membercoco24319-Jan-20 8:48 
GeneralRe: win32 Radio button doesn't show when is checked Pin
Victor Nijegorodov19-Jan-20 9:29
MemberVictor Nijegorodov19-Jan-20 9:29 
GeneralRe: win32 Radio button doesn't show when is checked Pin
coco24319-Jan-20 10:05
Membercoco24319-Jan-20 10:05 
GeneralRe: win32 Radio button doesn't show when is checked Pin
_Flaviu19-Jan-20 19:22
Member_Flaviu19-Jan-20 19:22 
GeneralRe: win32 Radio button doesn't show when is checked Pin
coco24320-Jan-20 6:50
Membercoco24320-Jan-20 6:50 
GeneralRe: win32 Radio button doesn't show when is checked Pin
_Flaviu20-Jan-20 19:41
Member_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
mveStefan_Lang20-Jan-20 4:00 
QuestionI cannot create a Release version. Pin
Member 1410515514-Jan-20 16:50
MemberMember 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.