home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!sun-barr!news2me.ebay.sun.com!exodus.Eng.Sun.COM!sun!claris!wombat
- From: wombat@claris.com (Scott Lindsey)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: Drawing Icons in Modal Dialogs?
- Message-ID: <15149@claris.com>
- Date: 9 Sep 92 23:21:36 GMT
- References: <1992Sep8.170930.24746@utkux1.utk.edu>
- Sender: news@claris.com
- Organization: Claris Corporation, Vancouver WA
- Lines: 19
- Nntp-Posting-Host: lindsey
- Wombat: yes
- Number: 64962
-
- In article <1992Sep8.170930.24746@utkux1.utk.edu>, danny@utkux1.utk.edu (Danny W. McCampbell) writes:
- >
- > Hi. I have a modal dialog that I want to draw an ICON resource
- > in. The problem I have is I am getting the resource from an
- > ICN# resource. How can I draw this ICN# resource as an ICON
- > resource into a Modal Dialog? Any ideas would be greatly appreciated.
-
- Try
-
- GetDItem(dlog, Item, &IType, &IHdl, &IRect);
- ReleaseResource(IHdl);
- IHdl = GetResource('ICN#', id);
- SetDItem(dlog, Item, IType, IHdl, &IRect);
-
- Since an ICON resource is a proper prefix of an ICN#, you shouldn't have any
- problems.
-
- --
- Scott Lindsey <wombat@claris.com>
-