You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GetWindowPlacement() and SetWindowPlacement() handle a WINDOWPLACEMENT struct. showCmd is a u32, but it should be a SHOW_WINDOW_CMD, because the values that it may contain like, e.g., SW_SHOWMINIMIZED are of that type.
The text was updated successfully, but these errors were encountered:
We can't do that, sadly. See related issue #1502 for the details.
The short version is: showCmd is u32 while SW_SHOWMINIMIZED et al. are integer literals in the original C/C++ headers (i.e., #define SW_SHOWMINIMIZED 2). Those default to int. We have to preserve these types for application binary interface (ABI) correctness.
Projections (e.g., C#, Rust) can opt into reading the associated enum attribute value and generate any desired overloads, wrappers, etc.
GetWindowPlacement()
andSetWindowPlacement()
handle aWINDOWPLACEMENT
struct.showCmd
is au32
, but it should be aSHOW_WINDOW_CMD
, because the values that it may contain like, e.g.,SW_SHOWMINIMIZED
are of that type.The text was updated successfully, but these errors were encountered: