Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error when using the new version of winsdk #21

Open
twinstar6980 opened this issue Jan 24, 2023 · 0 comments
Open

Compile error when using the new version of winsdk #21

twinstar6980 opened this issue Jan 24, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@twinstar6980
Copy link

twinstar6980 commented Jan 24, 2023

The version of winsdk I am using is 22621 and I encountered the error when compiling: ambigous symbol, and when I commented MENUPARTSEX in ThemeHelper, the program compiled successfully.
Snipaste_23-01-24_11-26-44
Snipaste_23-01-24_11-12-19
Snipaste_23-01-24_11-27-06

so, conditional preprocess should be used for MENUPARTSEX:

	// Windows 11 22H2+
#if !defined NTDDI_WIN10_NI // SDK 10.0.22621.0
	enum MENUPARTSEX
	{
		MENU_POPUPITEMKBFOCUS = 26,
		MENU_POPUPITEM_FOCUSABLE = 27
	};
#endif
@krlvm krlvm added the enhancement New feature or request label Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants