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
  1. Home
  2. General Programming
  3. ATL / WTL / STL
  4. dialogbar control

dialogbar control

Scheduled Pinned Locked Moved ATL / WTL / STL
c++comdockerquestionlearning
2 Posts 2 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.
  • T Offline
    T Offline
    tirucapricorn
    wrote on last edited by
    #1

    hi all, iam creating dialogbar activex control ..thru ATL.. i created one dialogbar resource... when i insert that control in test container..its not visible. if i want to see in test container,whats the procedure...can u please guid me through small code snippet? best regards, tirucapricorn

    W 1 Reply Last reply
    0
    • T tirucapricorn

      hi all, iam creating dialogbar activex control ..thru ATL.. i created one dialogbar resource... when i insert that control in test container..its not visible. if i want to see in test container,whats the procedure...can u please guid me through small code snippet? best regards, tirucapricorn

      W Offline
      W Offline
      wlwlxj
      wrote on last edited by
      #2

      I'll show some code about card,write by myself,i'm chinese: void CCardsCtrl::OnDraw( CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid) { // TODO: Replace the following code with your own drawing code. CBitmap* pOldBitmap = NULL; CBitmap bitmap; CDC bmpDC; CRect rect; CPoint ptLeftUp; //ÔËÐÐģʽÏÂÒÆ¶¯´°¿Ú if(AmbientUserMode()) { GetRectInContainer(&rect); rect.bottom -= m_sOffset; rect.top -= m_sOffset; MoveWindow(rect); } //»æÖÆÆË¿Ë bmpDC.CreateCompatibleDC(pdc); if(m_bBackground) //ÏÔʾ±³¾° { if(m_sBackBmp == 1) { bitmap.LoadBitmap(IDB_BITMAP_BACK1); } else { bitmap.LoadBitmap(IDB_BITMAP_BACK2); } } else //ÏÔÊ¾ÅÆÃæ { bitmap.LoadBitmap(IDB_BITMAP_11+m_sValue-1); } pOldBitmap = bmpDC.SelectObject(&bitmap); pdc->BitBlt(rcBounds.left, rcBounds.top, rcBounds.Width(), rcBounds.Height(), &bmpDC, rcBounds.left, rcBounds.top, SRCCOPY); bmpDC.SelectObject(pOldBitmap); bitmap.DeleteObject(); } ddddddddddddddddddddd

      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