Any difference between the following code and the one in quoted message?

  inBmpHdl = ::DmGet1Resource('tAIB', iconType == kBigIcon ? 1000 : 1001);

  if (inBmpHdl != NULL) {
   pBmp = (BitmapPtr)MemHandleLock(inBmpHdl);
   if(pBmp != NULL) {
    WinDrawBitmap(pBmp, inLeft, inTop);
       MemPtrUnlock(pBmp);
   }
   DmReleaseResource(inBmpHdl);
  }

Thanks
horace

----- Original Message -----
From: Ramel Levin <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 2000 Jan 07 Fri 04:47am
Subject: Re: Icon in form


> BitmapPtr pBmp;
>
>  inBmpHdl = ::DmGet1Resource('tAIB', iconType == kBigIcon ? 1000 : 1001);
>
>  if (inBmpHdl != NULL) {
>   pBmp = (BitmapPtr)MemHandleLock(inBmpHdl);
>   if(pBmp != NULL) {
>    WinDrawBitmap(pBmp, inLeft, inTop);
>       MemHandleUnlock(inBmpHdl);
>   }
>   DmReleaseResource(inBmpHdl);
>  }
>
> R.
>
> ----- Original Message -----
> From: McCollister, Mike <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, January 07, 2000 2:21 PM
> Subject: Icon in form
>
>
> > Hi,
> >
> > I would like to put the icon bitmap in a form. Right now the only what I
> > know how to do it is to create a new bitmap that just happens to be the
> icon
> > and then include that bitmap in the form. This seems such a waste since
I
> > already have the icon bitmap in my resource file. Any idea on how to do
> > this?
> >
> > By the way, I am using gcc and PilRC 2.4.
> >
> > Thanks,
> >
> > Mike McCollister
> >
> > Michael J. McCollister, Senior Systems Engineer
> > Northrop Grumman
> > Melbourne, Florida
> > Phone: 321-726-7862
> > Fax: 321-726-7722
> > E-Mail: [EMAIL PROTECTED]
> >
> >
>
>
>


Reply via email to