Click here to Skip to main content
14,459,276 members

C / C++ / MFC

 
AnswerRe: Reverse engineering GCC output - need library file (name) and path. Pin
Gerry Schmitz27-Jan-20 6:55
mveGerry Schmitz27-Jan-20 6:55 
GeneralRe: Reverse engineering GCC output - need library file (name) and path. Pin
Vaclav_28-Jan-20 3:44
MemberVaclav_28-Jan-20 3:44 
AnswerRe: Reverse engineering GCC output - need library file (name) and path. Pin
Richard MacCutchan27-Jan-20 7:09
communityengineerRichard MacCutchan27-Jan-20 7:09 
AnswerRe: Reverse engineering GCC output - need library file (name) and path. Pin
k505427-Jan-20 7:24
Memberk505427-Jan-20 7:24 
GeneralRe: Reverse engineering GCC output - need library file (name) and path. Pin
Vaclav_27-Jan-20 8:00
MemberVaclav_27-Jan-20 8:00 
AnswerRe: Reverse engineering GCC output - need library file (name) and path. Pin
leon de boer27-Jan-20 23:28
Memberleon de boer27-Jan-20 23:28 
GeneralRe: Reverse engineering GCC output - need library file (name) and path. Pin
Vaclav_28-Jan-20 3:45
MemberVaclav_28-Jan-20 3:45 
QuestionDPI aware, I am confused Pin
Erich Jarz23-Jan-20 8:25
MemberErich Jarz23-Jan-20 8:25 
Hi
I read some articles on how to make a win32 prog DPI aware. I want to make a dialog which has
windows controls, bitmaps and gdiplus objects combined.
I am using VS2019 and started a MFC app from scratch.
What would be the right way to get a DPI aware app, because I set DPI to high in the MFC app setting and used GetDeviceCaps to draw the lines. But when DPI is set to HIGH the lines do not match with the controls anymore. When I switch it off, the graphics look blurry, but are on the right position.
I made some screenshots to show what I mean:


Windows 100%, DPI aware to HIGH

Windows 150%, DPI aware to HIGH

Windows 150%, DPI aware to NO


What would be the right approach, so windows controls and graphics match on all resolutions?

thanks
regards
Erich
AnswerRe: DPI aware, I am confused Pin
Gerry Schmitz23-Jan-20 8:37
mveGerry Schmitz23-Jan-20 8:37 
GeneralRe: DPI aware, I am confused Pin
Erich Jarz23-Jan-20 9:27
MemberErich Jarz23-Jan-20 9:27 
GeneralRe: DPI aware, I am confused Pin
leon de boer24-Jan-20 8:05
Memberleon de boer24-Jan-20 8:05 
GeneralRe: DPI aware, I am confused Pin
Erich Jarz24-Jan-20 8:42
MemberErich Jarz24-Jan-20 8:42 
GeneralRe: DPI aware, I am confused Pin
leon de boer24-Jan-20 20:41
Memberleon de boer24-Jan-20 20:41 
GeneralRe: DPI aware, I am confused Pin
Erich Jarz26-Jan-20 21:22
MemberErich Jarz26-Jan-20 21:22 
GeneralRe: DPI aware, I am confused Pin
Gerry Schmitz24-Jan-20 9:27
mveGerry Schmitz24-Jan-20 9:27 
GeneralRe: DPI aware, I am confused Pin
Richard MacCutchan23-Jan-20 10:59
communityengineerRichard MacCutchan23-Jan-20 10:59 
Questionwin32 Radio button doesn't show when is checked Pin
coco24319-Jan-20 7:53
Membercoco24319-Jan-20 7:53 
AnswerRe: win32 Radio button doesn't show when is checked Pin
Victor Nijegorodov19-Jan-20 8:32
MemberVictor Nijegorodov19-Jan-20 8:32 
GeneralRe: win32 Radio button doesn't show when is checked Pin
coco24319-Jan-20 9:48
Membercoco24319-Jan-20 9:48 
GeneralRe: win32 Radio button doesn't show when is checked Pin
Victor Nijegorodov19-Jan-20 10:29
MemberVictor Nijegorodov19-Jan-20 10:29 
GeneralRe: win32 Radio button doesn't show when is checked Pin
coco24319-Jan-20 11:05
Membercoco24319-Jan-20 11:05 
GeneralRe: win32 Radio button doesn't show when is checked Pin
_Flaviu19-Jan-20 20:22
Member_Flaviu19-Jan-20 20:22 
GeneralRe: win32 Radio button doesn't show when is checked Pin
coco24320-Jan-20 7:50
Membercoco24320-Jan-20 7:50 
GeneralRe: win32 Radio button doesn't show when is checked Pin
_Flaviu20-Jan-20 20:41
Member_Flaviu20-Jan-20 20:41 
AnswerRe: win32 Radio button doesn't show when is checked Pin
Richard MacCutchan20-Jan-20 0:16
communityengineerRichard MacCutchan20-Jan-20 0:16 

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.