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

Search:

Type: Posts; User: Beginner_MFC

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. How to pass int return type function in ON_COMMAND of BEGIN_MESSAGE_MAP

    When member function whose return type is int is placed inside the ON_COMMAND of BEGIN_MESSAGE_MAP, It shows error of invalid type conversion. Suggest whats the alternative for that or how can i pass...
  2. Replies
    1
    Views
    289

    Building openLdap 2.4.48 on Windows

    Want to upgrade to openLdap version 2.4.48.I have downloaded the source code from the website but cant get any steps to build/compile it on Windows.Plz if anyone have any idea about how to build...
  3. Replies
    2
    Views
    440

    Coloring selected row of CListCtrl

    I have a class MyList which is derived from CListCtrl.I want to color selected row to RED.I used NMCustomDraw() but problem is as soon as dialog(CDialog) gets opened ,all the rows come with the color...
  4. Re: How to use ownerdrawn ccombobox in MyCdialog class

    Drawitem gets called and also the color is also getting reflected but issue now is color is reflected in complete background dropdown list but i want color change on selected or hovered item and plus...
  5. How to use ownerdrawn ccombobox in MyCdialog class

    I have derived a class from CComboBox.I want to change background color of selected/hovered string in CComboBox to Red.
    Below is code of .h and .cpp files of derived class.


    //MyCCombo.h
    ...
  6. Replies
    2
    Views
    448

    Changing background Color of CRect

    I have the code as below:


    CRect textRect (10,20,30,40);
    CStatic *text = new CStatic;
    text->Create("Text",allstyle| SS_LEFT ,textRect,&m_Panel);

    Note: m_Panel is a scrollbarPanel

    Now...
  7. Re: Changing color of CProgressBarCtrl in MFC C++

    I checked stdafx.h ,code you wrote above is not there
  8. Changing color of CProgressBarCtrl in MFC C++

    I have used following code for coloring the CProgressBarCtrl:



    COLORREF clrBar = RGB(0, 0, 0); // the bar color
    progressBarCtrl.SendMessage(PBM_SETBARCOLOR, 0, (LPARAM) clrBar);


    But this...
  9. Re: Changing GroupBox Title/Label Position

    Yeah its simplest but issue is this place title/text above the groupbox and not what i want to achieve. I want to shift the default position of title/label from top left to certain pixels
  10. Changing GroupBox Title/Label Position

    Can anyone tell ,how to change the GroupBox Title/Label Position .Since resource script(.rc) file has coordinates of groupbox but not of the title/label of groupbox, by deafult it comes on the top...
  11. Re: CDialog not getting closed in one click

    It is a Modal Dialog..Application is Single threaded. Code for OnOK() is as follows:


    Void handleOK()
    {
    CDialog::OnOK();
    }

    Note: handleOk has been declared in header file and also mapped...
  12. CDialog not getting closed in one click

    I have created a dialog (class derived from CDialog) and having one OK button in it.Problem is sometimes dialog dont get close in one go when ok button is pressed.I have debugged the code ,destructor...
  13. Re: Changing tab order of buttons of Cpropertysheet

    Confusion confusion...explaining it in a simple way..I have three buttons(Ok,Cancel,Help) on my propertysheet.Now by using MoveWindow() method i have changed(swapped) the position of Ok and Cancel...
  14. Changing tab order of buttons of Cpropertysheet

    I have changed the position of Buttons of Cpropertysheet but when i am pressing the tab key from keyboard the order of moving of control remains old one.Since we dont have any .rc file for...
  15. Re: Changing background Color of standard buttons (ok,cancel,help) of Cpropertysheet

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

    I am able to achieve it by deriving MyCTabCtrl from CTabCtrl and using OnPaint() method and than subclassing it in MyPropertysheet class.Everything resolved ,just one issue,i got the tabs colored but...
  17. Re: Changing background Color of standard buttons (ok,cancel,help) of Cpropertysheet

    Mess up.keeping it simple..My button background color issue was solved when i used UpdateData(FALSE) And i removed onDrawItem() which is used for coloring tabs ..so now question is how to color Tabs...
  18. Re: Changing background Color of standard buttons (ok,cancel,help) of Cpropertysheet

    I have to try above with keeping onDrawItem() as it is in MyPropertysheet class?
  19. Re: Changing background Color of standard buttons (ok,cancel,help) of Cpropertysheet

    What is m_bTransparent?
  20. Re: Changing background Color of standard buttons (ok,cancel,help) of Cpropertysheet

    How to get GetTabCtrl() using CMFCTabCtrl because CTabCtrl *tabCtrl = GetTabCtrl() is right but CMFCTabCtrl *tabCtrl = GetTabCtrl() gives compilation error
    Note: I have included <afxtabctrl.h> for...
  21. Re: Changing background Color of standard buttons (ok,cancel,help) of Cpropertysheet

    I am able to find out the issue and now button is colored..Issue is ,i am using OnDrawItem() in MyPropertysheet class to color the tab controls as soon as i remove this code of OnDrawItem my button...
  22. Re: Changing background Color of standard buttons (ok,cancel,help) of Cpropertysheet

    UpdataData get Called
    m_ok has a valid m_hwnd after call
    Steeping into DDX call resulted in just moving to the next line.
    Yes m_hwnd has valid handler after methods stated above
  23. Re: Changing background Color of standard buttons (ok,cancel,help) of Cpropertysheet

    I did debug but not able to get anything on UpdateData() means no success!!
  24. Replies
    8
    Views
    677

    Re: Changing background color of CButton

    Ok.After doing that ,does i need to map that CMyButton Variable in DDX_CONTROL() too ?
  25. Replies
    8
    Views
    677

    Re: Changing background color of CButton

    I debugged. onDrawItem() in not getting called.Not able to figure where i am doing wrong
Results 1 to 25 of 49
Page 1 of 2 1 2


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)