Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - LoadBitmapFromResource
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

LoadBitmapFromResource

 Post Reply Post Reply
Author
Message
bruce62 View Drop Down
Newbie
Newbie
Avatar

Joined: 19 January 2009
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote bruce62 Quote  Post ReplyReply Direct Link To This Post Topic: LoadBitmapFromResource
    Posted: 19 January 2009 at 10:16am
Hi,
is possible in VB.NET (2005) use CommandBars.Icons.LoadBitmapFromResource(....) ?
The bitmap comes from an external DLL i wrote or from the resoure fo the app?
Thanks in advance



ActiveX 12.1
Visual Studio 2005
VB.NET
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 20 January 2009 at 2:51am
Hi,
Most easy way for .NET is add ImageManager control andadd all icons in design time.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
bruce62 View Drop Down
Newbie
Newbie
Avatar

Joined: 19 January 2009
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote bruce62 Quote  Post ReplyReply Direct Link To This Post Posted: 20 January 2009 at 4:32am
Thank you

ActiveX 12.1
Visual Studio 2005
VB.NET
Back to Top
Auge_Ohr View Drop Down
Groupie
Groupie


Joined: 20 December 2008
Status: Offline
Points: 65
Post Options Post Options   Thanks (0) Thanks(0)   Quote Auge_Ohr Quote  Post ReplyReply Direct Link To This Post Posted: 16 March 2009 at 11:17pm
hi,
Originally posted by oleg oleg wrote:

Most easy way for .NET is add ImageManager control and add all icons in design time.
i use Xbase++ and like to ask "deeper".

i know how to use ImageManager LoadIcon/LoadBitmap but it meen that
all Icon/Bitmap have to be "single Files" on Harddisk.
i like to use my *.ARC Resource file

LoadBitmapFromResource(Module,Resource,Commands,imageState)
Quote Module
Handle to the instance of the module whose executable file contains the bitmap to be loaded.

hm ... let say Application have a Form "oDlg". In my *.ARC File i have "ICON  nResID" which
will display in upper left Corner of "oDlg" so my Icon are "bind"(?) to *.EXE.

is Module = oDlg:Hwnd ?

Quote Resource
Long pointer to a null-terminated string that contains the name of the bitmap resource to be loaded.

so again a Question : how must my "Resource" File look like ?
now it is in a *.ARC File

Quote
ICON
   1   = ".\..\RES\OHR2.ICO"
   2   = ".\..\RES\STAR32.ICO"

BITMAP
   100 = ".\..\RES\100_FILE_NEW.bmp"
   101 = ".\..\RES\101_FILE_OPEN.bmp"
...

VERSION
   "CompanyName"      = "Auge & Ohr"
...
#define MANIFEST_RESID 1
#define MANIFEST 24

USERDEF MANIFEST
  MANIFEST_RESID = FILE "EXTFILE.EXE.MANIFEST"


Quote Commands
Determines if bitmap contained alpha layer.

hm ... äh ... can you tell it a Newbie what it meen ? Sample ?

thx for help
greetings by OHR
Jimmy
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 17 March 2009 at 1:40am
Hi,
Guess this ARC files its some special format of xBase. Think ImageManager controls is also better solution for you.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.