Updating pointers visual studio 28 08 11 speed dating odessa

6854933580_2c8b688306_z

Let’s talk about the developer-focused improvements first.For Microsoft to be successful in reducing the number of blurry or incorrectly sized desktop applications that end-users see, updating desktop applications to handle dynamic DPI scaling properly needs to be as easy as possible for you.We’re still working on improving the high-DPI story for you and in this article we’ll go over some of the improvements coming in the Windows 10 Creators Update.Before we dive into that, here’s a quick recap of the issue: The image above illustrates the types of issues you’ll see in Windows 10 when using multiple displays with different DPI values.With PMv2 these dialogs will automatically DPI scale when the DPI changes.If any of your dialog layout is controlled by code you’ll need to make sure that your code doesn’t conflict with the automatic scaling that is being done by Windows.When you want to opt a dialog or an HWND in a dialog out of automatic DPI scaling you can use Set Dialog Dpi Change Behavior/Set Dialog Control Dpi Change Behavior, respectively.typedef enum DIALOG_DPI_CHANGE_BEHAVIORS DIALOG_DPI_CHANGE_BEHAVIORS; BOOL WINAPI Set Dialog Dpi Change Behavior(HWND h Dlg, DIALOG_DPI_CHANGE_BEHAVIORS mask, DIALOG_DPI_CHANGE_BEHAVIORS values); typedef enum DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS; BOOL WINAPI Set Dialog Control Dpi Change Behavior(HWND h Wnd, DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS mask, DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS values); NOTE: Set Dialog Control Dpi Change Behavior only affects first-level children of a PMv2 dialog.

updating pointers visual studio-79updating pointers visual studio-63updating pointers visual studio-84updating pointers visual studio-83

In this picture you can see: Note that these are just a few of the types of issues and that all the items that are too small in this picture could easily be too large if the display topology was reversed (high-DPI primary and low-DPI external display).When a DPI changed in per-monitor version 1 (DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE) you could resize and reposition your HWNDs, but if any of these HWNDs were Windows common controls (pushbuttons, checkboxes, etc.) Windows would not redraw the bitmaps (which we refer to as “theme drawn parts” or “theme parts” because they’re drawn by UXTheme) for these buttons.This meant that the bitmaps were either too large or too small, depending on your display topology.When your dialog is DPI scaled by the system a new font is sent to all HWNDs in the dialog.You might, for example, want to opt out of having Windows send a DPI-scaled font to a specific HWND.You could use Set Dialog Control Dpi Change Behavior in this case.

You must have an account to comment. Please register or login here!