![]() |
Draw icon from Picture Box |
Post Reply ![]() |
Author | |
AbhishekGoenka ![]() Newbie ![]() Joined: 31 March 2008 Status: Offline Points: 14 |
![]() ![]() ![]() ![]() ![]() 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 |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Why it have work?
Picture1.hWnd is handle of window not icon.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
AbhishekGoenka ![]() Newbie ![]() Joined: 31 March 2008 Status: Offline Points: 14 |
![]() ![]() ![]() ![]() ![]() |
Then how it will work?
if my Icon is stored in PictureBox of size (16*16) |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Picture1.Picture.Handle
But you must sure it has icon - not bitmap.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
AbhishekGoenka ![]() Newbie ![]() Joined: 31 March 2008 Status: Offline Points: 14 |
![]() ![]() ![]() ![]() ![]() |
No it is not working because I think it is bitmap
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |