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. C / C++ / MFC
  4. About Dialog Box : Plz Help Urgent

About Dialog Box : Plz Help Urgent

Scheduled Pinned Locked Moved C / C++ / MFC
help
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.
  • P Offline
    P Offline
    parims
    wrote on last edited by
    #1

    Plz Give the code to draw colourful dialog boxes. means , to change back ground color and fore ground. Plz give GUI of dialog boxes. Reply Urgently Praveen Chowdam Kumar

    K T 2 Replies Last reply
    0
    • P parims

      Plz Give the code to draw colourful dialog boxes. means , to change back ground color and fore ground. Plz give GUI of dialog boxes. Reply Urgently Praveen Chowdam Kumar

      K Offline
      K Offline
      khan
      wrote on last edited by
      #2

      parims wrote: Plz Give the code to draw colourful dialog boxes. means , to change back ground color and fore ground. Plz give GUI of dialog boxes. OK. Handle the OnEraseBkgnd() like this: .... OnEraseBkgnd(CDC* pDC) { CRect rect; GetClientRect(&rect); pDC->FillSolidRect(&rect,RGB(255,0,0)); return TRUE; } The events list for a dialog box does not normally display this message to be handled in VC6. You need to change the "Filter for messages.." combo box to "Window". Now the background will be bright Red. To change the foreground, do you mean Static text etc? Then you will need to subclass the CStatic, and handle its painting yourself. You can find many CStatic samples here on CP. this is this.

      1 Reply Last reply
      0
      • P parims

        Plz Give the code to draw colourful dialog boxes. means , to change back ground color and fore ground. Plz give GUI of dialog boxes. Reply Urgently Praveen Chowdam Kumar

        T Offline
        T Offline
        toxcct
        wrote on last edited by
        #3

        there's no need to be so hurrying, because if anyone knows the answer, or if anyone want to answer you, you will stay in the same state. moreover, you seem so hurry that i doubt you googled your problem, or even searched CodeProject for that. CodeProject[^] Google[^]


        TOXCCT >>> GEII power
        [toxcct][VisualCalc]

        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