![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Is it possible to get a bitmap icon from a window's hWnd value suitable for populating an ImageList control? I have working a small application that lists the running, user applications in a listview (title & hWnd) and it would be great if I could also add the icon (or the parent's icon where appropriate) to the listview. Thoughts, ideas or suggestions? Thanks... Steve |
#3
| |||
| |||
|
|
Is it possible to get a bitmap icon from a window's hWnd value suitable for populating an ImageList control? I have working a small application that lists the running, user applications in a listview (title & hWnd) and it would be great if I could also add the icon (or the parent's icon where appropriate) to the listview. Thoughts, ideas or suggestions? Thanks... Steve |
#4
| |||
| |||
|
|
If the Icon is there by way of the window class then the "GetClassLong " API call passing GCL_ICON as the index will return it's handle - or you can send a WM_GETICON message to the window and get the handle back (Seehttp://msdn2.microsoft.com/en-us/library/aa453863.aspx) Hope this helps |
#5
| |||
| |||
|
|
Thanks Duncan, but that function appears to only apply to Windows CE 1.0 or later, according to the documentation there in, MDSN. On Dec 26, 3:06 pm, "Duncan Jones" <Dun... (AT) merrionomputing (DOT) com> wrote: If the Icon is there by way of the window class then the "GetClassLong " API call passing GCL_ICON as the index will return it's handle - or you can send a WM_GETICON message to the window and get the handle back (Seehttp://msdn2.microsoft.com/en-us/library/aa453863.aspx) Hope this helps |
#6
| |||
| |||
|
|
Thoughts, ideas or suggestions? Thanks... |
|
Is it possible to get a bitmap icon from a window's hWnd value suitable for populating an ImageList control? I have working a small application that lists the running, user applications in a listview (title & hWnd) and it would be great if I could also add the icon (or the parent's icon where appropriate) to the listview. Thoughts, ideas or suggestions? Thanks... Steve |
#7
| |||
| |||
|
|
It also applies to all desktop OS versions post Windows 95 / NT4.0http://msdn2.microsoft.com/en-us/library/ms632625(VS.85).aspx Hope this helps, Duncan |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |