From my codes I have this to ask for:
Single constants (maybe already mentioned in the former texts
Code:
#MOD_NOREPEAT = $00004000 ;' Hotkey parameter
#CAPTUREBLT = $40000000 ;' BitBlt parameter
#HWND_MESSAGE = -3 ;' creates a Message-Only Window --> SetParent(WindowID(<Window>), #HWND_MESSAGE)
#LBS_NOSEL = $00004000 ;' 0x4000 ... in ListViewGadget() ???
Receiving Shutdown messages Maybe this WM_ messages can go into the main loop by similar PB_Event_... events ?
The constants below are missing anyways.
Code:
; ;' WM_QUERYENDSESSION and WM_ENDSESSION lParam
; ;' Note that this parameter is a bit mask.
; ;' To test for this value, use a bit-wise operation; do not test for equality.
; ;' WM_ENDSESSION ..
; ;' If wParam is TRUE, the application must shut down.
; ;' Any Data should be saved automatically without prompting the user (For more information, see Remarks).
; ;' The Restart Manager sends this message when the application is using a file that needs to be replaced,
; ;' when it must service the system, Or when system resources are exhausted. The application will be restarted
; ;' if it has registered for restart using the RegisterApplicationRestart function. For more information, see Guidelines for Applications.
; ;'
; ;' If wParam is FALSE, the application should not shut down.
#ENDSESSION_CLOSEAPP = $00000001 ;' (0x1)
#ENDSESSION_CRITICAL = $40000000 ;' (0x40000000) The application is forced to shut down.
#ENDSESSION_LOGOFF = $80000000 ;' (0x80000000) The user is logging off. For more information, see Logging Off.
Power Management The constant for PowerSettingChange is already defined, the structure unfortunately not. (Sorry, this request needs some improvement.)
Code:
; ;' #WM_POWERBROADCAST -- constants for windows powermanagement message
; ;' [url]https://docs.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-powerbroadcast_setting[/url]
; Global pbs.POWERBROADCAST_SETTING
Debug #PBT_POWERSETTINGCHANGE ;' = $8013 ;' A power setting change event has been received.
I found more missing constants like this:
Code:
#PBTF_APMRESUMEFROMFAILURE = $00000001 ;' not found
#PBT_APMQUERYSTANDBY = $0001 ;' not found
#PBT_APMQUERYSTANDBYFAILED = $0003 ;' not found
#PBT_APMSTANDBY = $0005 ;' not found
#PBT_APMRESUMESTANDBY = $0008 ;' not found
Select uMsg
Case #WM_POWERBROADCAST
If wParam = #PBT_APMQUERYSUSPEND Or wParam = #PBT_APMQUERYSTANDBY
;' windows want to go into standby or hibernation mode
ElseIf wParam = #PBT_APMRESUMECRITICAL Or wParam = #PBT_APMRESUMESUSPEND Or wParam = #PBT_APMRESUMESTANDBY
;' windows returns from standby or hibernation
EndIf
;'
; [url]http://msdn.microsoft.com/en-us/library/aa372721(VS.85).aspx[/url]
; The system allows approximately two seconds for an application to handle this notification. If an application is still performing operations after its time allotment has expired, the system may interrupt the application.
; Windows Server 2003 and Windows XP/2000: Applications are allowed up to 20 seconds to respond to the PBT_APMSUSPEND event.
Autocomplete on Stringgadget Code:
#SHACF_DEFAULT = $00000000
#SHACF_FILESYSTEM = $00000001 ;' *
#SHACF_URLHISTORY = $00000002
#SHACF_URLMRU = $00000004
#SHACF_URLALL = #SHACF_URLHISTORY | #SHACF_URLMRU
#SHACF_USETAB = $00000008
#SHACF_FILESYS_ONLY = $00000010
#SHACF_AUTOSUGGEST_FORCE_ON = $10000000
#SHACF_AUTOSUGGEST_FORCE_OFF = $20000000
#SHACF_AUTOAPPEND_FORCE_ON = $40000000
#SHACF_AUTOAPPEND_FORCE_OFF = $80000000
#SHACF_FILESYS_DIRS = $00000020
;' sample code
CoInitialize_(#Null) ;' init once at beginning -- for autocomplete in stringgadgets
; ...
StringGadget(#GADGET_SourceDir, 288, 80, 304, 20, "")
SHAutoComplete_(GadgetID(#GADGET_SourceDir), #SHACF_AUTOAPPEND_FORCE_ON | #SHACF_AUTOSUGGEST_FORCE_ON | #SHACF_FILESYSTEM)
; ...
CoUninitialize_() ;' uninit at end of program