Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Skin Framework
  New Posts New Posts RSS Feed - GUI Issues for ComboBox & Tab Control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

GUI Issues for ComboBox & Tab Control

 Post Reply Post Reply
Author
Message
praving@rhubcom.com View Drop Down
Newbie
Newbie


Joined: 05 October 2012
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote praving@rhubcom.com Quote  Post ReplyReply Direct Link To This Post Topic: GUI Issues for ComboBox & Tab Control
    Posted: 05 October 2012 at 5:46am
Hi,

I have used background image for sample application. I have GUI issue related to ComboBox & Tab Control.

I have applied the Office-2007 Blue style to the application using following method:

XTPSkinManager()->SetApplyOptions(XTPSkinManager()->GetApplyOptions() | xtpSkinApplyFrame | xtpSkinApplyColors | xtpSkinApplyMetrics);
XTPSkinManager()->LoadSkin(m_strStylesPath + _T("Office2007.cjstyles"), _T("NormalBlue.ini"));
XTPSkinManager()->SetAutoApplyNewThreads(TRUE);

ComboBox:
          ComboBox control is not painted well, the drop down items drown as transperent background.

Tab Control:
          Tab control should have transperent background header. Now it showing theme color for blank space.


For to draw transparent background for all controls I have added ON_WM_CTLCOLOR() message.
Please have look code part:

HBRUSH CSkinControlsDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH oHBRUSH = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);

int iCtrlId = pWnd->GetDlgCtrlID();
if (iCtrlId == IDC_STATIC )
{
pDC->SetTextColor(RGB(0,0,0));
pDC->SetBkMode(TRANSPARENT);
return (HBRUSH)GetStockObject(HOLLOW_BRUSH);
}

if(iCtrlId == IDC_COMBO_VERTICAL || iCtrlId == IDC_COMBO_HORIZONTAL)
{
pDC->SetBkMode(TRANSPARENT);
return oHBRUSH;
}

if(iCtrlId == IDC_TAB_SAMPLE)
{
pDC->SetTextColor(RGB(0,0,0));
pDC->SetBkMode(TRANSPARENT);
return oHBRUSH;
}

return (HBRUSH)GetStockObject(NULL_BRUSH);
}


Please find attached screen capture. Please let me know if I am missing anything.
Please direct me to resolve above issue.

https://support.codejock.com/Attachments/20120905-094220_1.png
uploads/7673/20120905-094220_1.rar

Thanks & Regards,
Pravin 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.