Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Cxstatic

Cxstatic

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fx9200
    wrote on last edited by
    #1

    hello; i wanted to make my editbox transparent i used the cxstatic class from Codeproject for the static ones is was OK but the problem is in updating time for example the new time is redrown on the old one !

    _ H 2 Replies Last reply
    0
    • F fx9200

      hello; i wanted to make my editbox transparent i used the cxstatic class from Codeproject for the static ones is was OK but the problem is in updating time for example the new time is redrown on the old one !

      _ Offline
      _ Offline
      _AnsHUMAN_
      wrote on last edited by
      #2

      fx9200 wrote:

      i wanted to make my editbox transparent

      HBRUSH CYourDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
      {
      	HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
      	CBrush m_Brush;
      	m_Brush.CreateStockObject (NULL_BRUSH);
      	if(pWnd->GetDlgCtrlID()==IDC_EDIT1/*ID of the item*/)
      	{		
      		pDC->SetBkMode (1);
      		return (HBRUSH)m_Brush;
      	}
      	return hbr;
      }
      

      Try this for the edit box. I think I answered the same question yesterday. Didn't this solve your problem.

      Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

      1 Reply Last reply
      0
      • F fx9200

        hello; i wanted to make my editbox transparent i used the cxstatic class from Codeproject for the static ones is was OK but the problem is in updating time for example the new time is redrown on the old one !

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        See here[^] maybe it is some helpful to you

        _**


        **_

        WhiteSky


        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups