Skip to content
Browse files

Add doc comment for NewIconFromResource

  • Loading branch information...
1 parent 0c0e9fb commit 7e0f79dab87e92d2144d51cf749bbe7417611ff4 @lxn committed Jun 18, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 icon.go
View
1 icon.go
@@ -38,6 +38,7 @@ func NewIconFromFile(filePath string) (*Icon, error) {
return &Icon{hIcon: hIcon}, nil
}
+// NewIconFromResource returns a new Icon, using the specified icon resource.
func NewIconFromResource(resName string) (ic *Icon, err error) {
hInst := GetModuleHandle(nil)
if hInst == 0 {

0 comments on commit 7e0f79d

Please sign in to comment.
Something went wrong with that request. Please try again.