简体   繁体   中英

WinUI3 : Understanding WinUI3 desktop app

As we can create a WinUI3 app in both the desktop app(win32 app) and the UWP app. What exactly does it mean to create a WinUI3 in a desktop app? As I understand, this app will follow the Win32 App model, that is, the app will not run on sandbox and the app will not have activation and lifecycle management like UWP apps. Is this right?

In this case, How can we use Win32 APIs in this project, and can we follow the event loop like the WNDPROC callback function instead of Application::Start()?

Thank You

I found that you have posted the same case on the Q&A forum: https://learn.microsoft.com/en-us/answers/questions/1095079/winui3-understanding-winui3-desktop-app.html

You could refer to the answer provided by Castorix 31. To prevent the link from expiring, I will post the answer to Castorix 31:

Application::Start replaces the main message loop. As it is a Win32 app, you can have access to the main window WndProc with SetWindowSubclass.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM