CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: list control

Hybrid View

  1. #1
    Join Date
    Jul 2007

    list control

    i have dialog box in which i have a list box .when i click each item in the list box
    it should display the preview image on the same dialog box. i have some images and.bmp files .when i click each image list in list box it shoul show the preview of it on the dialog box
    how can i do this

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Hanover Germany

    Re: list control

    You can use a "picture" control (static control with the SS_BITMAP or SS_ICON style) to show your .bmp and .ico files.
    To load the .bmp and .ico files you should use LoadImage API with the LR_LOADFROMFILE flag.
    Read MSDN for details.
    Victor Nijegorodov

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)