diff options
| author | Pietro Gagliardi <[email protected]> | 2014-02-10 17:02:54 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-02-10 17:02:54 -0500 |
| commit | 2231c339546e15e4125bac269526d728763ba3e5 (patch) | |
| tree | 1302bcad2d4f65e11500d49b51a4d8d5b8a38d27 /main.go | |
| parent | 4d674ebd3d0e857fcaade5ff480ed6edd7eb7dd8 (diff) | |
Added static controls and added a static label to the example window.
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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) |
