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. How to write text to desktop

How to write text to desktop

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
5 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.
  • E Offline
    E Offline
    Emis
    wrote on last edited by
    #1

    Can anyone show mw how to write text to desktop, something like ative calendar. Thank in advance.

    A M 2 Replies Last reply
    0
    • E Emis

      Can anyone show mw how to write text to desktop, something like ative calendar. Thank in advance.

      A Offline
      A Offline
      Alexander M
      wrote on last edited by
      #2

      use transparent windows for example! Don't try it, just do it! ;-)

      E 1 Reply Last reply
      0
      • E Emis

        Can anyone show mw how to write text to desktop, something like ative calendar. Thank in advance.

        M Offline
        M Offline
        Mil10
        wrote on last edited by
        #3

        An alternative is use GetDc(GetDsktopWindow())->DrawText("skjjkajsa",x,y,whatever the params....)

        E 1 Reply Last reply
        0
        • A Alexander M

          use transparent windows for example! Don't try it, just do it! ;-)

          E Offline
          E Offline
          Emis
          wrote on last edited by
          #4

          thank, i already did it, but how can i make it always on bottom?:confused:

          1 Reply Last reply
          0
          • M Mil10

            An alternative is use GetDc(GetDsktopWindow())->DrawText("skjjkajsa",x,y,whatever the params....)

            E Offline
            E Offline
            Emis
            wrote on last edited by
            #5

            hi, i has just done like this void CTestDlg::OnOK() { // TODO: Add extra validation here CWnd *wnd = this->GetDesktopWindow(); CRect rect; rect.top=300; rect.left=300; rect.bottom=rect.top+200; rect.right=rect.left+200; CDC *pDC = wnd->GetDC(); pDC->SetTextColor(RGB(255,255,255)); pDC->DrawText("test",rect,DT_CENTER); // CDialog::OnOK(); } but nothing happend.

            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