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

Search:

Type: Posts; User: karhong

Page 1 of 2 1 2

Search: Search took 0.14 seconds.

  1. .DrawText makes my app laggy/sluggish (MFC C++)

    Hi,

    I've search throughout the net, cant find any solution. Hope someone able to help me.

    My apps had a panel which can draw many rect. The app can be moved by draggin left/right using mouse....
  2. Replies
    6
    Views
    1,632

    Re: Change the shape of CEdit custom draw?

    I've tested using regions.. but.. it doesnt work
    any help?
  3. Replies
    6
    Views
    1,632

    Re: Change the shape of CEdit custom draw?

    Can you give me some sample on how to draw it ?
    thank you for your reply!
  4. Replies
    6
    Views
    1,632

    Change the shape of CEdit custom draw?

    Hi,

    I've created CCustomEdit inherited from CEdit and managed to change its background color and text color.
    I'm trying to change the shape of it ( eg : on each end i plan to make it like curve a...
  5. Replies
    10
    Views
    6,625

    Re: BackGround color of Status Bar

    oh... i've tested to change to classic... the background color changed..

    any idea why xp style wont work?
    Is there any other solution so that xp style will work for the background color change?
  6. Replies
    10
    Views
    6,625

    Re: BackGround color of Status Bar

    when i added that line to the "OnCreate" on mainfrm
    Nothing happen. It will come out the same color "gray"

    Its just like... either i add that line or dindt add that line, the outcome is the...
  7. Replies
    10
    Views
    6,625

    Re: BackGround color of Status Bar

    Victor : I don't know why it works on ur place but not mine T_T

    Alin : I've tried that too before, but the seperator color is still gray in color. Can i set the seperator become more...
  8. Replies
    10
    Views
    6,625

    Re: BackGround color of Status Bar

    I've tried that, but it did not give any effect..

    m_wndStatusBar.GetStatusBarCtrl().SetBkColor(RGB(255,255,255));

    Do i need to do a custom status bar to make my background color change in MFC...
  9. Replies
    10
    Views
    6,625

    Re: BackGround color of Status Bar

    Is there any ways for me to set the seperator on the status bar become smaller?? by default, the width of it is 0.1cm

    Or can I disable/remove the seperator between the item in the status bar ??
  10. Replies
    10
    Views
    6,625

    BackGround color of Status Bar

    Hi, I'm able to set the text and the background color of the text for Status bar, but I'm not able to set the color for the 'seperator' of the status bar.
    I have 3 column on the status bar, each of...
  11. Replies
    2
    Views
    1,098

    Re: CImageList when .draw -> no more transparent

    yea... tried that.. but no luck T_T
  12. Replies
    2
    Views
    1,098

    CImageList when .draw -> no more transparent

    Hi,
    I'm loading resource>toolbar into CImageList

    When i draw using imageList.draw, then the transparent is no more work
    any idea?

    CImageList ImgList;
    COLORREF rgbTransparentColor =...
  13. Owner Draw Menu[BCMenu] cant change the text color of menuitem on menuBar

    Has anyone of u used this article owner draw menu?

    If anyone used it and know how to solve my problem, Please help - Highly Appreciated

    http://www.codeproject.com/KB/menus/bcmenu.aspx

    Hi,...
  14. Replies
    0
    Views
    588

    Owner Draw Menu[BCMenu] BUG ??

    Has anyone of u used this article owner draw menu?

    If anyone used it and know how to solve my problem, Please help - Highly Appreciated

    http://www.codeproject.com/KB/menus/bcmenu.aspx

    Hi,...
  15. Replies
    4
    Views
    3,126

    Re: Change color on toolbar[mouse hover] in MFC

    how do i check and set the toolbar item when mouse hover over it?

    if i use

    m_wndToolBar.GetClientRect(&rect);

    this only get the whole toolbar CRect.. what i want is to set the background...
  16. Replies
    4
    Views
    3,126

    Change color on toolbar[mouse hover] in MFC

    Hi, can anyone give me some hint on how to change the background color of the toolbar when the mouse hover/point to it?

    i've tried WM_EraseBkGnd

    Regards,
    KH
  17. Replies
    3
    Views
    1,238

    Re: SetCheck vs SetRadio on Owner Draw Menu

    oh.. got it.. thanks !!

    Another question..

    How do i get the icon/bitmap from CMenu and then draw it on

    void CMyMenu:: DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct)
    {

    }
  18. Replies
    3
    Views
    1,238

    SetCheck vs SetRadio on Owner Draw Menu

    How do i differentiate whether its a check mark / radio mark ??

    if(MyDrawItemStruct->itemState & ODS_CHECKED)//this is to check whether there is either check on the submenu
    {
    //inside...
  19. Replies
    3
    Views
    2,139

    Re: checkmark/icon in submenu[owner draw menu]

    oh thanks !!
    it worked out now ! ^^
  20. Replies
    3
    Views
    2,139

    checkmark/icon in submenu[owner draw menu]

    Hi, Is there any ways for me to add a check marks or icon into the submenu?

    I'm currently creating owner draw menu.
    So far, I only able to print out the text into the submenu... I failed to put...
  21. Re: CMenu -> GetMenuString -> Get text and shortcut key seperate

    thank you for your responce ^^

    I had it worked out by searching for a \t

    because the text and the shortcut key will be seperated with a tab
  22. CMenu -> GetMenuString -> Get text and shortcut key seperate

    Hi, I've created an owner draw Menu and i wanted to get the text and the shortcut key seperately. Any idea??

    By calling below code, it will get both text and shortcut key and put inside a string....
  23. Re: Owner Draw Menu [mouse over menu, without clicking, no background color shaded]

    Thanks to both of your reply ^^

    my question solved by following Mike Harnad

    by comparing ODS_HOTLIGHT, then i set the color...
    when i mouse over, then it will come out

    THANKS !!

    bestest...
  24. Owner Draw Menu [mouse over menu, without clicking, no background color shaded]

    Hi, I wanted to ask if anyone ever go into this link, which teaches us how to do an Owner Draw Menu.

    http://www.codeguru.com/cpp/controls/menu/article.php/c3721/

    By following this tutorial,...
  25. Replies
    6
    Views
    23,234

    Re: Change MenuBar & ToolBar background color

    To change the background color of MenuBar, simply add below's line of code, beginning of mainframe OnCreate

    CBrush* NewBrush;
    NewBrush = new CBrush;...
Results 1 to 25 of 28
Page 1 of 2 1 2


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)