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

Thread: list control

  1. #1
    Join Date
    Jul 2007
    Posts
    20

    list control

    hi
    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
    regards
    vasanth

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    19,587

    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)