Skip to content

Easy UWP Modern Control in plain win32 program. (C/C++)

License

Notifications You must be signed in to change notification settings

bho3538/EasyWinModernControl

Repository files navigation

EasyWinModernControl

Easy UWP Modern Control and WinUI2 Control in plain win32 program. (C/C++)

image image image image

Supported Control

Textbox
Password box
Button
Slider
Time Picker
Radio button
Calendar Date Picker
Progress bar
Progress Ring
Hyperlink control
Checkbox
Toggle Switch
Progress bar(WinUI)
Progress Ring(WinUI)
NumberBox(WinUI)\

How to use

1.Download pre-compiled dll files and link it.
2.You should add manifest file in your program like this.

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
    <application>
      <maxversiontested Id="10.0.18362.0"/>
      <supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />
    </application>
  </compatibility>
</assembly>

Use WinUI2

image image

  1. Put 'Microsoft.UI.Xaml.dll' (WinUI2 2.8.2) at program path. (check build architecture)\
  2. Put 'resources.pri' at program path. (ignore architecture)\
  3. In 'EasyWinModernCtrl_InitializeApartment(BOOL useMTA, BOOL useWinUI)' function, set TRUE at second parameter ('useWinUI')\

API Document

Supported OS

Windows 10 RS5 +

If your program need support old windows version, check support status in runtime and both old (win32 control or etc) and modern controls can be used.
For example, if you want to create button in Windows 10 RS5 or higher version, 'EasyWinModernCtrl_IsSystemSupport()' will returned 'TRUE'.
And you can use 'EasyWinModernCtrl_CreateButton()' to create UWP button.
Otherwise (like Windows 7 or ~Windows 10 RS4) Your program need using classic win32 button.\

image

Like this picture, Using this library does not mean that it cannot run on old version OS.

##License : MIT