Print Page | Close Window

Draw icon from Picture Box

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=10050
Printed Date: 04 May 2024 at 5:00am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Draw icon from Picture Box
Posted By: AbhishekGoenka
Subject: Draw icon from Picture Box
Date Posted: 03 April 2008 at 1:11am
Hi

I am using Listview to display Icon and data
My Icon is storing in picture1(16*16)
I am using following code
          LvFiles.IconSize = 16
          LvFiles.Icons.AddIcon Picture1.hWnd, 1, xtpImageNormal
          LvFiles.ListItems.Add , , FileName, 1

this is not woking
where as If I use
LvFiles.Icons.LoadBitmap App.Path & "\AlphaFind.bmp", 1, xtpImageNormal
It works fine




Replies:
Posted By: Oleg
Date Posted: 03 April 2008 at 2:59am
Why it have work?
Picture1.hWnd is handle of window not icon.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: AbhishekGoenka
Date Posted: 03 April 2008 at 3:18am
Then how it will work?
if my Icon is stored in PictureBox of size (16*16)


Posted By: Oleg
Date Posted: 03 April 2008 at 4:12am
Hi,
 
Picture1.Picture.Handle
But you must sure it has icon - not bitmap.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: AbhishekGoenka
Date Posted: 03 April 2008 at 4:28am
No it is not working because I think it is bitmap



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