summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-02-10 17:02:54 -0500
committerPietro Gagliardi <[email protected]>2014-02-10 17:02:54 -0500
commit2231c339546e15e4125bac269526d728763ba3e5 (patch)
tree1302bcad2d4f65e11500d49b51a4d8d5b8a38d27 /main.go
parent4d674ebd3d0e857fcaade5ff480ed6edd7eb7dd8 (diff)
Added static controls and added a static label to the example window.
Diffstat (limited to 'main.go')
-rw-r--r--main.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/main.go b/main.go
index 1e27088..71defba 100644
--- a/main.go
+++ b/main.go
@@ -25,6 +25,7 @@ const (
IDC_FIXCOMBO
IDC_EDIT
IDC_LIST
+ IDC_LABEL
)
var varCombo, fixCombo, edit, list HWND
@@ -221,6 +222,16 @@ func main() {
// TODO check actual return value as THAT indicates an error
}
+ _, err = CreateWindowEx(
+ 0,
+ "STATIC", "Label",
+ SS_NOPREFIX | controlStyle,
+ 140, 80, 100, 20,
+ hwnd, HMENU(IDC_FIXCOMBO), hInstance, NULL)
+ if err != nil {
+ fatalf("error creating label: %v", err)
+ }
+
_, err = ShowWindow(hwnd, nCmdShow)
if err != nil {
fatalf("error showing window: %v", err)