Print Page | Close Window

LoadBitmapFromResource

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=13208
Printed Date: 21 May 2024 at 11:54am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: LoadBitmapFromResource
Posted By: bruce62
Subject: LoadBitmapFromResource
Date 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



Replies:
Posted By: Oleg
Date 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


Posted By: bruce62
Date Posted: 20 January 2009 at 4:32am
Thank you

-------------

ActiveX 12.1
Visual Studio 2005
VB.NET


Posted By: Auge_Ohr
Date 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


Posted By: Oleg
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net