Permalink
Browse files

Export MustRegisterWindowClass

  • Loading branch information...
1 parent 95cf378 commit 56df135990a604f9e7c657c1177e93ae9893698a @lxn committed Sep 15, 2012
Showing with 15 additions and 14 deletions.
  1. +1 −1 composite.go
  2. +1 −1 customwidget.go
  3. +1 −1 dialog.go
  4. +1 −1 groupbox.go
  5. +1 −1 mainwindow.go
  6. +1 −1 notifyicon.go
  7. +1 −1 numberedit.go
  8. +1 −1 spacer.go
  9. +2 −1 splitter.go
  10. +1 −1 splitterhandle.go
  11. +1 −1 tabpage.go
  12. +1 −1 tabwidget.go
  13. +1 −1 webview.go
  14. +1 −1 widget.go
View
@@ -9,7 +9,7 @@ import . "github.com/lxn/go-winapi"
const compositeWindowClass = `\o/ Walk_Composite_Class \o/`
func init() {
- mustRegisterWindowClass(compositeWindowClass)
+ MustRegisterWindowClass(compositeWindowClass)
}
type Composite struct {
View
@@ -9,7 +9,7 @@ import . "github.com/lxn/go-winapi"
const customWidgetWindowClass = `\o/ Walk_CustomWidget_Class \o/`
func init() {
- mustRegisterWindowClass(customWidgetWindowClass)
+ MustRegisterWindowClass(customWidgetWindowClass)
}
type PaintFunc func(canvas *Canvas, updateBounds Rectangle) error
View
@@ -29,7 +29,7 @@ const (
const dialogWindowClass = `\o/ Walk_Dialog_Class \o/`
func init() {
- mustRegisterWindowClass(dialogWindowClass)
+ MustRegisterWindowClass(dialogWindowClass)
}
type dialogish interface {
View
@@ -11,7 +11,7 @@ import . "github.com/lxn/go-winapi"
const groupBoxWindowClass = `\o/ Walk_GroupBox_Class \o/`
func init() {
- mustRegisterWindowClass(groupBoxWindowClass)
+ MustRegisterWindowClass(groupBoxWindowClass)
}
type GroupBox struct {
View
@@ -9,7 +9,7 @@ import . "github.com/lxn/go-winapi"
const mainWindowWindowClass = `\o/ Walk_MainWindow_Class \o/`
func init() {
- mustRegisterWindowClass(mainWindowWindowClass)
+ MustRegisterWindowClass(mainWindowWindowClass)
}
type MainWindow struct {
View
@@ -14,7 +14,7 @@ import . "github.com/lxn/go-winapi"
const notifyIconWindowClass = `\o/ Walk_NotifyIcon_Class \o/`
func init() {
- mustRegisterWindowClass(notifyIconWindowClass)
+ MustRegisterWindowClass(notifyIconWindowClass)
}
func notifyIconWndProc(hwnd HWND, msg uint32, wParam, lParam uintptr) (result uintptr) {
View
@@ -16,7 +16,7 @@ import . "github.com/lxn/go-winapi"
const numberEditWindowClass = `\o/ Walk_NumberEdit_Class \o/`
func init() {
- mustRegisterWindowClass(numberEditWindowClass)
+ MustRegisterWindowClass(numberEditWindowClass)
}
type NumberEdit struct {
View
@@ -7,7 +7,7 @@ package walk
const spacerWindowClass = `\o/ Walk_Spacer_Class \o/`
func init() {
- mustRegisterWindowClass(spacerWindowClass)
+ MustRegisterWindowClass(spacerWindowClass)
}
type Spacer struct {
View
@@ -17,7 +17,8 @@ const splitterWindowClass = `\o/ Walk_Splitter_Class \o/`
var splitterHandleDraggingBrush *SolidColorBrush
func init() {
- mustRegisterWindowClass(splitterWindowClass)
+ MustRegisterWindowClass(splitterWindowClass)
+
splitterHandleDraggingBrush, _ = NewSolidColorBrush(Color(GetSysColor(COLOR_BTNSHADOW)))
}
View
@@ -9,7 +9,7 @@ import . "github.com/lxn/go-winapi"
const splitterHandleWindowClass = `\o/ Walk_SplitterHandle_Class \o/`
func init() {
- mustRegisterWindowClass(splitterHandleWindowClass)
+ MustRegisterWindowClass(splitterHandleWindowClass)
}
type splitterHandle struct {
View
@@ -11,7 +11,7 @@ import . "github.com/lxn/go-winapi"
const tabPageWindowClass = `\o/ Walk_TabPage_Class \o/`
func init() {
- mustRegisterWindowClass(tabPageWindowClass)
+ MustRegisterWindowClass(tabPageWindowClass)
}
type TabPage struct {
View
@@ -15,7 +15,7 @@ import . "github.com/lxn/go-winapi"
const tabWidgetWindowClass = `\o/ Walk_TabWidget_Class \o/`
func init() {
- mustRegisterWindowClass(tabWidgetWindowClass)
+ MustRegisterWindowClass(tabWidgetWindowClass)
}
type TabWidget struct {
View
@@ -14,7 +14,7 @@ import . "github.com/lxn/go-winapi"
const webViewWindowClass = `\o/ Walk_WebView_Class \o/`
func init() {
- mustRegisterWindowClass(webViewWindowClass)
+ MustRegisterWindowClass(webViewWindowClass)
}
type WebView struct {
View
@@ -309,7 +309,7 @@ var widgetWndProcPtr uintptr = syscall.NewCallback(widgetWndProc)
var registeredWindowClasses map[string]bool = make(map[string]bool)
-func mustRegisterWindowClass(className string) {
+func MustRegisterWindowClass(className string) {
if registeredWindowClasses[className] {
panic("window class already registered")
}

0 comments on commit 56df135

Please sign in to comment.