Skip to content

Commit

Permalink
Add doc comment for NewIconFromResource
Browse files Browse the repository at this point in the history
  • Loading branch information
lxn committed Jun 18, 2012
1 parent 0c0e9fb commit 7e0f79d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions icon.go
Expand Up @@ -38,6 +38,7 @@ func NewIconFromFile(filePath string) (*Icon, error) {
return &Icon{hIcon: hIcon}, nil return &Icon{hIcon: hIcon}, nil
} }


// NewIconFromResource returns a new Icon, using the specified icon resource.
func NewIconFromResource(resName string) (ic *Icon, err error) { func NewIconFromResource(resName string) (ic *Icon, err error) {
hInst := GetModuleHandle(nil) hInst := GetModuleHandle(nil)
if hInst == 0 { if hInst == 0 {
Expand Down

0 comments on commit 7e0f79d

Please sign in to comment.