Skip to content

weimingtom/ProgrammingWindowsWithGo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Programming Windows With Go

Reference

[1] Charles Petzold, "Programming Windows, 5th Edition, (Example)"

[2] Microsoft, "[Windows API Index](http://msdn.microsoft.com/library/windows/desktop/hh920508(vs.85\))"

Test Enviroment:

  1. Windows XP 32bits

  2. Go 1.1

  3. go-winapi

Compile

go build HelloMsg.go

Example List

Chapter 1 Getting Started

1-1 HelloMsg.go (Displays "Hello, Windows" in a message box)

Chapter 2 An Introduction to Unicode

2-1 ScrnSize.go (Displays screen size in a message box)

Chapter 3 Windows and Messages

3-1 HelloWin.go (Displays "Hello, Windows" in client area)

Chapter 4 An Exercise in Text Output

4-1 Sysmets1.go (System Metrics Display Program No. 1)

4-2 Sysmets2.go (System Metrics Display Program No. 2)

4-3 Sysmets3.go (System Metrics Display Program No. 3)

Chapter 5 Basic Drawing

5-1 Sinwave.go (Sine Wave Using Polyline)

5-2 LineDemo.go (Line-Drawing Demonstration Program)

5-3 Bezier.go (Bezier Splines Demo)

5-4 Altwind.go (Alternate and Winding Fill Modes)

5-5 WhatSize.go (What Size is the Window?)

5-6 RandRect.go (Displays Random Rectangles)

5-7 DevCaps1.go (Device Capabilities Display Program No. 1)

5-8 Clover.go (Clover Drawing Program Using Regions)

Chapter 6 The Keyboard

6-1 SysMets4.go (System Metrics Display Program No. 4)

6-2 KeyView1.go (Displays Keyboard and Character Messages)

6-3 StokFont.go (Stock Font Objects)

6-4 KeyView2.go (Displays Keyboard and Character Messages)

6-5 Typer.go (Typing Program)

Chapter 7 The Mouse

7-1 Connect.go

7-2 Checker1.go

7-3 Checker2.go

7-4 Checker3.go

7-5 Checker4.go

7-6 BlokOut1.go

7-7 BlokOut2.go

7-8 Sysmets.go

Chapter 8 The Timer

8-1 Beeper1.go

8-2 Beeper2.go ~ HAVE A TROUBLE

8-3 DigClock.go

8-4 Clock.go

8-5 WhatClr.go

Chapter 9 Child Window Controls

9-1 BtnLook.go

9-2 OwnDraw.go

9-3 Colors1.go

9-4 PopPad1.go

9-5 Environ.go

9-6 Head.go

Chapter 10 Menus and Other Resources

10-1 IconDemo.go

10-3 PoePoem

10-4 MenuDemo

10-6 PopMenu

10-7 PoorMenu

10-8 NoPopups

10-9 PopPad2

Chapter 11 Dialog Boxes

11-1 About1

11-2 About2

11-3 About3

11-4 Colors2

11-5 HexCalc

11-6 PopPad3

11-7 Colors3

Chapter 12 The Clipboard

12-1 ClipText

12-2 ClipView

Chapter 13 Using the Printer

13-1 GetPrnDC

13-2 DevCaps2

13-3 FormFeed

13-4 Print

13-5 Print1

13-6 Print2

13-7 Print3

13-8 PoPPrnt

Chapter 14 Bitmaps and Bitblts

14-1 Bitblt

14-2 Stretch

14-3 Bricks1

14-4 Bricks2

14-5 Bricks3

14-6 HelloBit

14-7 Sketch

14-8 GrafMenu

14-9 BitMask

14-10 Bounce

14-11 Scramble

Chapter 15 The Device-Independent Bitmap

Chapter 16 The Palette Manager

Chapter 17 Text and Fonts

Chapter 18 Metafiles

Chapter 19 The Multiple-Document Interface

Chapter 20 Multitasking and Multithreading

Chapter 21 Dynamic-Link Libraries

Chapter 22 Sound and Music

Chapter 23 A Taste of the Internet

About

Programming Windows With Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 96.7%
  • C 3.3%