Click here to Skip to main content
15,922,584 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Recommendation Pin
doctorpi22-Apr-04 0:53
doctorpi22-Apr-04 0:53 
GeneralRe: Recommendation Pin
Christian Graus22-Apr-04 11:55
protectorChristian Graus22-Apr-04 11:55 
GeneralDoes DDK "install sample" work? [src:%ddkroot%\src\setup\install] Pin
Behzad Ebrahimi21-Apr-04 5:57
Behzad Ebrahimi21-Apr-04 5:57 
GeneralRe: Does DDK "install sample" work? [src:%ddkroot%\src\setup\install] Pin
Mike Dimmick21-Apr-04 6:06
Mike Dimmick21-Apr-04 6:06 
GeneralRe: Does DDK "install sample" work? [src:%ddkroot%\src\setup\install] Pin
Behzad Ebrahimi24-Apr-04 3:07
Behzad Ebrahimi24-Apr-04 3:07 
GeneralRe: Does DDK "install sample" work? [src:%ddkroot%\src\setup\install] Pin
tareqsiraj21-Apr-04 6:14
tareqsiraj21-Apr-04 6:14 
GeneralButton Bitmaps Pin
mavgoose21-Apr-04 5:53
mavgoose21-Apr-04 5:53 
GeneralRe: Button Bitmaps Pin
RChin21-Apr-04 6:03
RChin21-Apr-04 6:03 
Extremely simple if you are using VS6 with MFC:

<lu>
  • Set the bitmap option of your button from the styles tab in the resource editor
  • Create a member variable of your button control using classwizard
  • In your OnInitDialog() or OnInitialUpdate() overridden function, set the bitmap of the button using the SetBitmap() member function.


    You will need to load your bitmap resource into a CBitmap variable
    for use by the button.

    So a sample code would look something like:
    <br />
    ..<br />
    // m_bmpButtonImage is a CBitmap variable<br />
    m_bmpButtonImage.LoadBitmap(IDB_IMAGE);<br />
    // m_cButton is the associated control variable<br />
    m_cButton.SetBitmap(m_bmpButtonImage);<br />
    ..<br />







    I Dream of Absolute Zero

  • GeneralRe: Button Bitmaps Pin
    VBZ21-Apr-04 21:07
    VBZ21-Apr-04 21:07 
    GeneralRe: Button Bitmaps Pin
    toxcct21-Apr-04 6:13
    toxcct21-Apr-04 6:13 
    GeneralRe: Button Bitmaps Pin
    David Crow21-Apr-04 8:16
    David Crow21-Apr-04 8:16 
    GeneralUpload file without file-selection field Pin
    intelligent21-Apr-04 5:33
    intelligent21-Apr-04 5:33 
    GeneralCapture KeyPress event of CRichEditCtrl Pin
    Chauhan Chirag21-Apr-04 4:52
    Chauhan Chirag21-Apr-04 4:52 
    GeneralRe: Capture KeyPress event of CRichEditCtrl Pin
    Iain Clarke, Warrior Programmer21-Apr-04 5:42
    Iain Clarke, Warrior Programmer21-Apr-04 5:42 
    GeneralRe: Capture KeyPress event of CRichEditCtrl Pin
    Chauhan Chirag21-Apr-04 7:22
    Chauhan Chirag21-Apr-04 7:22 
    GeneralProgramme is bad. Pin
    Alikasb21-Apr-04 4:43
    Alikasb21-Apr-04 4:43 
    GeneralRe: Programme is bad. Pin
    Ravi Bhavnani21-Apr-04 4:44
    professionalRavi Bhavnani21-Apr-04 4:44 
    GeneralRe: Programme is bad. Pin
    toxcct21-Apr-04 5:01
    toxcct21-Apr-04 5:01 
    GeneralRe: Programme is bad. Pin
    David Crow21-Apr-04 5:13
    David Crow21-Apr-04 5:13 
    GeneralRe: Programme is bad. Pin
    jmkhael21-Apr-04 5:26
    jmkhael21-Apr-04 5:26 
    GeneralRe: Programme is bad. Pin
    toxcct21-Apr-04 5:32
    toxcct21-Apr-04 5:32 
    GeneralRe: Programme is bad. Pin
    Ravi Bhavnani21-Apr-04 7:06
    professionalRavi Bhavnani21-Apr-04 7:06 
    GeneralRe: Programme is bad. Pin
    Prakash Nadar21-Apr-04 8:25
    Prakash Nadar21-Apr-04 8:25 
    GeneralTabbed Controls with Tool Bars Pin
    cleathley@iinet21-Apr-04 4:42
    cleathley@iinet21-Apr-04 4:42 
    GeneralCustom Cursor causes cursor to flick when moving the mouse Pin
    stelitsisan21-Apr-04 4:41
    stelitsisan21-Apr-04 4:41 

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.