I see there are standard Windows icons:
https://docs.microsoft.com/en-us/window ... -std-icons
How would I make my program draw those, like drawing an image?
Standard Windows Icons
Re: Standard Windows Icons
I think this icons are mainly for the Message Requester. The use is described in Pb help.
sorry for my bad english
Re: Standard Windows Icons
Right, but I want to use the icons without the blocking requester.Josh wrote:I think this icons are mainly for the Message Requester. The use is described in Pb help.
Re: Standard Windows Icons
You can use LoadImage_() or LoadIcon_() API.
Code: Select all
;https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-loadimagew
;#OIC_ERROR = 32513
;hIcon = LoadImage_(0, #OIC_ERROR, #IMAGE_ICON, 16, 16, #LR_SHARED)
;https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-loadiconw
hIcon = LoadIcon_(0, #IDI_ERROR)
;hIcon = LoadIcon_(0, #IDI_ASTERISK)
;hIcon = LoadIcon_(0, #IDI_EXCLAMATION)
;hIcon = LoadIcon_(0, #IDI_QUESTION)
If hIcon
If OpenWindow(0, 0, 0, 245, 105, "ImageGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ImageGadget(0, 10, 10, 100, 83, hIcon)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
EndIf