Page 5 of 6
					
				Re: Requested API Structure and constants
				Posted: Wed May 03, 2023 7:42 pm
				by jacdelad
				Mentioned from spikey in this thread: 
viewtopic.php?p=600709#p600709
Code: Select all
Enumeration 0
  #NOTIFY_FOR_THIS_SESSION
  #NOTIFY_FOR_ALL_SESSIONS
EndEnumeration
Enumeration 1
  #WTS_CONSOLE_CONNECT
  #WTS_CONSOLE_DISCONNECT
  #WTS_REMOTE_CONNECT
  #WTS_REMOTE_DISCONNECT
  #WTS_SESSION_LOGON
  #WTS_SESSION_LOGOFF
  #WTS_SESSION_LOCK
  #WTS_SESSION_UNLOCK
  #WTS_SESSION_REMOTE_CONTROL
  #WTS_SESSION_CREATE
  #WTS_SESSION_TERMINATE
EndEnumeration
 
			 
			
					
				Re: Requested API Structure and constants
				Posted: Thu May 04, 2023 6:23 am
				by Denis
				Fred, could you please update these Structures (see the code i've posted about  2,5 years ago).
Thanks.
Structure HDITEM
viewtopic.php?p=560929&hilit=HDITEM#p560929
Structure LVGROUP
viewtopic.php?p=560929&hilit=HDITEM#p560929 
			 
			
					
				Re: Requested API Structure and constants
				Posted: Thu May 18, 2023 4:06 am
				by Rinzwind
				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?
			 
			
					
				Re: Requested API Structure and constants
				Posted: Thu May 18, 2023 8:10 am
				by Fred
				All is already in GitHub, under Documentation/Import/ and Residents/ . Feel free to contribute by creating Pull Request if you need it.
			 
			
					
				Re: Requested API Structure and constants
				Posted: Sun Nov 19, 2023 9:09 am
				by Little John
				[Windows] Please update the NOTIFYICONDATA structure to its 
current version.
 
			 
			
					
				Re: Requested API Structure and constants
				Posted: Mon Dec 04, 2023 11:00 am
				by jacdelad
				COMBOBOXINFO
Code: Select all
Structure COMBOBOXINFO
  cbSize.l
  rcItem.RECT
  rcButton.RECT
  stateButton.l
  hwndCombo.i
  hwndItem.i
  hwndList.i
EndStructure
and
#CB_GETCOMBOBOXVALUE = $164
 
			 
			
					
				Re: Requested API Structure and constants
				Posted: Fri Feb 16, 2024 11:29 am
				by Caronte3D
				#PW_RENDERFULLCONTENT = $00000002
			 
			
					
				Re: Requested API Structure and constants
				Posted: Tue Mar 19, 2024 2:18 pm
				by Caronte3D
				#PB_MessageRequester_Question = 32
			 
			
					
				Re: Requested API Structure and constants
				Posted: Wed Mar 20, 2024 11:41 pm
				by jacdelad
				Caronte3D wrote: Tue Mar 19, 2024 2:18 pm
#PB_MessageRequester_Question = 32
 
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.
 
			 
			
					
				Re: Requested API Structure and constants
				Posted: Fri Mar 22, 2024 5:18 pm
				by Caronte3D
				Thanks, jacdelad for the explanation 

 
			 
			
					
				Re: Requested API Structure and constants
				Posted: Thu May 16, 2024 7:15 pm
				by Psychophanta
				I have detected
#PB_Event_MiddleClick_WentDown=519
#PB_Event_MiddleClick_WentUp=520
			 
			
					
				Re: Requested API Structure and constants
				Posted: Fri May 17, 2024 10:25 am
				by mk-soft
				Psychophanta wrote: Thu May 16, 2024 7:15 pm
I have detected
#PB_Event_MiddleClick_WentDown=519
#PB_Event_MiddleClick_WentUp=520
 
Allready exists ...
See Tool Structure Viewer
Code: Select all
Debug #WM_MBUTTONDOWN
Debug #WM_MBUTTONUP
 
			 
			
					
				Re: Requested API Structure and constants
				Posted: Wed Aug 21, 2024 3:34 pm
				by skywalk
				#CFM_BACKCOLOR = $4000000 ; 67,108,864
Code: Select all
Procedure Editor_BackColor(Gadget, Color.l)
  format.CHARFORMAT2
  format\cbSize = SizeOf(CHARFORMAT2)
  format\dwMask = $4000000  ; = #CFM_BACKCOLOR
  format\crBackColor = Color
  SendMessage_(GadgetID(Gadget), #EM_SETCHARFORMAT, #SCF_SELECTION, @format)
EndProcedure
 
			 
			
					
				Re: Requested API Structure and constants
				Posted: Tue Jan 14, 2025 12:08 pm
				by Zapman
				MENUITEMINFO --> The existing structure is uncomplete.
Here is the right one:
Code: Select all
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
And also:
Code: Select all
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
 
			 
			
					
				Re: Requested API Structure and constants
				Posted: Thu Jan 16, 2025 6:29 pm
				by Denis
				St Zapman,
already asked here to Fred in 30 april 2023 but nothing change
MENUITEMINFO