Link to home
Start Free TrialLog in
Avatar of justaphase
justaphaseFlag for Portugal

asked on

FoxPro - Use windows icons in a ImageList ActiveX (MSComCtlLib.ImageListCtrl.2)

Hello Experts,

I have a foxpro code using the COM object "MSComctlLib.TreeCtrl.2" together with "MSComCtlLib.ImageListCtrl.2".
The code is working fine.

I have this:
			.AddObject('imglst1', 'olecontrol', 'MSComCtlLib.ImageListCtrl.2')
			WITH .imglst1
				.ImageHeight = 16
				.ImageWidth = 16
				&& .MaskColor = RGB(192,192,192)
				.ListImages.Add(,"Etiqueta",LoadPicture("c:\11.gif"))
				.ListImages.Add(,"Estrela",LoadPicture("c:\31.gif"))
		  ENDWITH

Open in new window

Instead of LoadPicture("c:\31.gif"), can i load the windows system icons?

Thx in advanced,
Miguel
ASKER CERTIFIED SOLUTION
Avatar of Pavel Celba
Pavel Celba
Flag of Czechia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial