CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Sparsh_21j

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    2,021

    Re: Remaining strip is grey of CMFCTOOLBAR

    Its CFrameWndEx
  2. Replies
    6
    Views
    2,021

    Re: Remaining strip is grey of CMFCTOOLBAR

    Yes victor i agree with you , i guess it belongs to CFrameWndEx , so problem is i want to make this strip color White
  3. Replies
    6
    Views
    2,021

    Re: Remaining strip is grey of CMFCTOOLBAR

    Please see an updated image......
  4. Replies
    6
    Views
    2,021

    Remaining strip is grey of CMFCTOOLBAR

    I derived a class from CMFCTOolBar and uses function OnFillBackground , i was successfully able to color the background behind the bitmap to white but remaining strip is still grey.image is attached...
  5. Re: Setting Font of Buttons in CDialog through .rc file

    That doesn't worked
  6. Re: Setting Font of Buttons in CDialog through .rc file

    I tried drilling down it and found that as soon as i declare button as CMFCBUTTON in .h file and compile code than font is not reflected. On other side if i dont declare it as CMFCBUTTON ,font gets...
  7. Re: Setting Font of Buttons in CDialog through .rc file

    No
  8. Re: Setting Font of Buttons in CDialog through .rc file

    In the resource
  9. Setting Font of Buttons in CDialog through .rc file

    I have the following code in .rc file


    FONT 12, "MS Shell Dlg"


    This code successfully sets the font of text inside the dialog(CDialog) to specifed face type but the font of text of buttons...
  10. Changing textColor of CMFCBUTTON in disabled state

    I have the following code:


    bool var;
    m_button.EnableWindow(var);
    If(var)
    {
    m_button.SetFaceColor((RGB(0,255,0),true);
    m_button.SetTextColor((RGB(255,255,255)));
    }
  11. Re: Changing background Color of standard buttons (ok,cancel,help) of Cpropertysheet

    {hwnd=0x000000000a3 {unused=???}}
  12. Re: Changing background Color of standard buttons (ok,cancel,help) of Cpropertysheet

    Visual Studio 2015.I think code posted above is compilable?
  13. Re: Changing background Color of standard buttons (ok,cancel,help) of Cpropertysheet

    //----------------------------------------------------------------//
    //Below is the code for .cpp file
    //----------------------------------------------------------------//

    //MyPropertySheet.cpp...
  14. Re: Changing background Color of standard buttons (ok,cancel,help) of Cpropertysheet

    Ok
  15. Re: Changing background Color of standard buttons (ok,cancel,help) of Cpropertysheet

    Real code in sense? I have pasted exact line to line code.....which else real code?
  16. Re: Changing background Color of standard buttons (ok,cancel,help) of Cpropertysheet

    //----------------------------------------------------------------//
    //Below is the code for .cpp file
    //----------------------------------------------------------------//
    //MyPropertySheet.cpp
    ...
  17. Re: Changing background Color of standard buttons (ok,cancel,help) of Cpropertysheet

    I did exactly the same..
  18. Re: Changing background Color of standard buttons (ok,cancel,help) of Cpropertysheet

    GCDEF I tried what you said but unfortunately it didn't changed the color,instead after that my button became invisible but clickable
  19. Re: Changing background Color of standard buttons (ok,cancel,help) of Cpropertysheet

    So were you able to see the color change of button? Image attached is not getting opened
  20. Re: Changing background Color of standard buttons (ok,cancel,help) of Cpropertysheet

    Victor ,you may see compilation errors coz i am writing manually ,i cant copy paste as it is due to some norms..But code is 100% compilable and i have shared both cpp and header files above with...
  21. Re: Changing background Color of standard buttons (ok,cancel,help) of Cpropertysheet

    Yes Arjay it sets the button text to OKAY,even button font is also getting bold if i use CFont concept,even position of button is also changing if i use Movewindow..Only thing and most painful for me...
  22. Re: Changing background Color of standard buttons (ok,cancel,help) of Cpropertysheet

    //----------------------------------------------------------------//
    //Below is the code for .cpp file
    //----------------------------------------------------------------//
    //MyPropertySheet.cpp
    ...
  23. Re: Changing background Color of standard buttons (ok,cancel,help) of Cpropertysheet

    Bool is the return type of OnInitDialog() method // declared in header file i.e MyPropertysheet.h

    Void is returne type of DoDataExchange() method //declared in header file i.e MyPropertysheet.h...
  24. Re: Changing background Color of standard buttons (ok,cancel,help) of Cpropertysheet

    Yes its CMFCButton but please i am here looking for solution ,please tell that.already told you code is compiling successfully but not reflecting result by using setfacecolor() .if you can help than...
  25. Re: Changing background Color of standard buttons (ok,cancel,help) of Cpropertysheet

    Ok arjay i will try that.bdw i have one button there on property page already and i am able to change its background color using setfacecolor() .You want me to add one new button on this propertypage...
Results 1 to 25 of 40
Page 1 of 2 1 2


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)