1 Star 0 Fork 1

HugoYuen/xcgui

forked from 秋雨阳/xcgui 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
messagebox.go 1.42 KB
一键复制 编辑 原始数据 按行查看 历史
CodyGuo 提交于 2015-12-12 10:36 . 新增托盘图标例子,与walk混写
package xcgui
import (
"github.com/codyguo/xcgui/xc"
)
type MsgBoxStyle uint
const (
MsgBoxOK MsgBoxStyle = xc.MB_OK
MsgBoxOKCancel MsgBoxStyle = xc.MB_OKCANCEL
MsgBoxAbortRetryIgnore MsgBoxStyle = xc.MB_ABORTRETRYIGNORE
MsgBoxYesNoCancel MsgBoxStyle = xc.MB_YESNOCANCEL
MsgBoxYesNo MsgBoxStyle = xc.MB_YESNO
MsgBoxRetryCancel MsgBoxStyle = xc.MB_RETRYCANCEL
MsgBoxCancelTryContinue MsgBoxStyle = xc.MB_CANCELTRYCONTINUE
MsgBoxIconHand MsgBoxStyle = xc.MB_ICONHAND
MsgBoxIconQuestion MsgBoxStyle = xc.MB_ICONQUESTION
MsgBoxIconExclamation MsgBoxStyle = xc.MB_ICONEXCLAMATION
MsgBoxIconAsterisk MsgBoxStyle = xc.MB_ICONASTERISK
MsgBoxUserIcon MsgBoxStyle = xc.MB_USERICON
MsgBoxIconWarning MsgBoxStyle = xc.MB_ICONWARNING
MsgBoxIconError MsgBoxStyle = xc.MB_ICONERROR
MsgBoxIconInformation MsgBoxStyle = xc.MB_ICONINFORMATION
MsgBoxIconStop MsgBoxStyle = xc.MB_ICONSTOP
MsgBoxDefButton1 MsgBoxStyle = xc.MB_DEFBUTTON1
MsgBoxDefButton2 MsgBoxStyle = xc.MB_DEFBUTTON2
MsgBoxDefButton3 MsgBoxStyle = xc.MB_DEFBUTTON3
MsgBoxDefButton4 MsgBoxStyle = xc.MB_DEFBUTTON4
)
func MsgBox(owner Window, title, message string, style MsgBoxStyle) int {
var ownerHWnd xc.HWND
if owner != nil {
ownerHWnd = owner.Handle()
}
return int(xc.MessageBox(
ownerHWnd,
title,
message,
uint32(style)))
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hugoyuen/xcgui.git
[email protected]:hugoyuen/xcgui.git
hugoyuen
xcgui
xcgui
master

搜索帮助