Guess it is about time for a big structured overhaul? Almost everything everything introduced in the win32 lib since era Windows 7+ is missing?
Is there a way/place where I can see the existing API structures/constants and function import declarations as point of reference for additions? Ie declaration of function FindWindow_, structure PROCESS_INFORMATION, constant #HWND_DESKTOP . If not... about time to add part the to github?
Just a sidenote: Microsoft itself writes we shouldn't use this one, as the purpose isn't always clear (whatever...) and it may be unsupported in the future. https://learn.microsoft.com/en-us/windo ... messagebox at "MB_ICONQUESTION".
Also, I don't know whether this is supported on other OSes ot the value for them may differ. So, including "MB_ICONQUESTION=$20" would maybe be a safer option.
Structure MENUITEMINFO Align #PB_Structure_AlignC
; Great thanks to idle from english PureBasic forum,
; for the right form of this structure.
cbSize.l
fMask.l
fType.l
fState.l
wID.l
hSubMenu.i
hbmpChecked.i
hbmpUnchecked.i
dwItemData.i
*dwTypeData
cch.l
hbmpItem.i ; This field is missing in the PureBasic actual (6.20) description of MENUITEMINFO.
EndStructure
Structure MENUINFO Align #PB_Structure_AlignC
cbSize.l ; Size of the structure (in bytes).
fMask.l ; Mask specifying which members are being set or retrieved.
dwStyle.l ; Style of the menu.
cyMax.l ; Maximum height of the menu, in pixels.
hbrBack.i ; Handle to the brush used to paint the menu background.
dwContextHelpID.l ; Context help ID for the menu.
dwMenuData.i ; Custom data associated with the menu.
EndStructure
;
Structure MENUBARINFO Align #PB_Structure_AlignC
cbSize.l
rcBar.RECT
hMenu.i
hwndMenu.i
fBarFocused.b
fFocused.b
fUnused.b
Padding_1.b
EndStructure
Last edited by Zapman on Wed Feb 19, 2025 5:51 pm, edited 2 times in total.