本文整理匯總了Golang中github.com/lxn/win.MAKEINTRESOURCE函數的典型用法代碼示例。如果您正苦於以下問題:Golang MAKEINTRESOURCE函數的具體用法?Golang MAKEINTRESOURCE怎麽用?Golang MAKEINTRESOURCE使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了MAKEINTRESOURCE函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: MyRegisterClass
func MyRegisterClass(hInstance win.HINSTANCE) (atom win.ATOM) {
var wc win.WNDCLASSEX
wc.CbSize = uint32(unsafe.Sizeof(wc))
wc.Style = win.CS_HREDRAW | win.CS_VREDRAW
wc.LpfnWndProc = syscall.NewCallback(WndProc)
wc.CbClsExtra = 0
wc.CbWndExtra = 0
wc.HInstance = hInstance
wc.HbrBackground = win.GetSysColorBrush(win.COLOR_WINDOWFRAME)
wc.LpszMenuName = syscall.StringToUTF16Ptr("")
wc.LpszClassName = syscall.StringToUTF16Ptr(wndClassName)
wc.HIconSm = win.LoadIcon(0, win.MAKEINTRESOURCE(win.IDI_APPLICATION))
wc.HIcon = win.LoadIcon(0, win.MAKEINTRESOURCE(win.IDI_APPLICATION))
wc.HCursor = win.LoadCursor(0, win.MAKEINTRESOURCE(win.IDC_ARROW))
return win.RegisterClassEx(&wc)
}
示例2: NewIconFromResourceId
func NewIconFromResourceId(id uintptr) (*Icon, error) {
hInst := win.GetModuleHandle(nil)
if hInst == 0 {
return nil, lastError("GetModuleHandle")
}
hIcon := win.LoadIcon(hInst, win.MAKEINTRESOURCE(id))
if hIcon == 0 {
return nil, lastError("LoadIcon")
}
return &Icon{hIcon: hIcon}, nil
}
示例3: IconQuestion
func IconQuestion() *Icon {
return &Icon{win.LoadIcon(0, win.MAKEINTRESOURCE(win.IDI_QUESTION)), true}
}
示例4: IconError
func IconError() *Icon {
return &Icon{win.LoadIcon(0, win.MAKEINTRESOURCE(win.IDI_ERROR)), true}
}
示例5: IconApplication
func IconApplication() *Icon {
return &Icon{win.LoadIcon(0, win.MAKEINTRESOURCE(win.IDI_APPLICATION)), true}
}
示例6: CursorWait
func CursorWait() Cursor {
return stockCursor{win.LoadCursor(0, win.MAKEINTRESOURCE(win.IDC_WAIT))}
}
示例7: CursorHelp
func CursorHelp() Cursor {
return stockCursor{win.LoadCursor(0, win.MAKEINTRESOURCE(win.IDC_HELP))}
}
示例8: IconWinLogo
func IconWinLogo() *Icon {
return &Icon{win.LoadIcon(0, win.MAKEINTRESOURCE(win.IDI_WINLOGO)), true}
}
示例9: CursorHand
func CursorHand() Cursor {
return stockCursor{win.LoadCursor(0, win.MAKEINTRESOURCE(win.IDC_HAND))}
}
示例10: CursorAppStarting
func CursorAppStarting() Cursor {
return stockCursor{win.LoadCursor(0, win.MAKEINTRESOURCE(win.IDC_APPSTARTING))}
}
示例11: CursorNo
func CursorNo() Cursor {
return stockCursor{win.LoadCursor(0, win.MAKEINTRESOURCE(win.IDC_NO))}
}
示例12: CursorUpArrow
func CursorUpArrow() Cursor {
return stockCursor{win.LoadCursor(0, win.MAKEINTRESOURCE(win.IDC_UPARROW))}
}
示例13: CursorCross
func CursorCross() Cursor {
return stockCursor{win.LoadCursor(0, win.MAKEINTRESOURCE(win.IDC_CROSS))}
}
示例14: IconWarning
func IconWarning() *Icon {
return &Icon{win.LoadIcon(0, win.MAKEINTRESOURCE(win.IDI_WARNING)), true}
}
示例15: CursorIcon
func CursorIcon() Cursor {
return stockCursor{win.LoadCursor(0, win.MAKEINTRESOURCE(win.IDC_ICON))}
}