Thread: Bm_setimage

  1. #1
    Android
    Join Date
    Mar 2004
    Location
    Kurunegala Colony, Sri Lanka, Sri Lanka
    Posts
    404

    Bm_setimage

    Hi, I'm trying to set a image for a button using SetDlgItem() with the BM_SETIMAGE parameter. MSDN says that I must send a handle to a image as the lParam parameter. Is that means a handle to a disk file?

  2. #2
    rEtaRD r HUMANS TOO !!! rEtard's Avatar
    Join Date
    Feb 2005
    Posts
    80
    the handle refers to the BITMAP
    ETC:
    Code:
    HBITMAP bmp;
    bmp = LoadBitmap(GetModuleHandle(NULL),MAKEINTRESOURCE(IDB_BITMAP));
    SendMessage(child.hwnd,BM_SETIMAGE,(WPARAM)IMAGE_BITMAP,(LPARAM)bmp);
    /* Have a nice day */

  3. #3
    Android
    Join Date
    Mar 2004
    Location
    Kurunegala Colony, Sri Lanka, Sri Lanka
    Posts
    404
    Thanx.

Popular pages Recent additions subscribe to a feed