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. Task Bar in Full Screen Mode Implementation

Task Bar in Full Screen Mode Implementation

Scheduled Pinned Locked Moved C / C++ / MFC
question
7 Posts 4 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.
  • N Offline
    N Offline
    nilaysoft
    wrote on last edited by
    #1

    I want implement full screen mode in my small application. I wrote codes as follows:

    cx = //width of the screen;
    cy = //height of the screen;
    SetWindowPos (hwnd, NULL, -4, -4, cx, cy, SWP_NOZORDER | SWP_FRAMECHANGED);

    They work pretty well, the minor boring thing is that the task bar (if Not autohide) is still there. it will not disappear unless I click it once? any solution? thanks, thanks. http://ihome.ust.hk/~zhaoming

    N N 2 Replies Last reply
    0
    • N nilaysoft

      I want implement full screen mode in my small application. I wrote codes as follows:

      cx = //width of the screen;
      cy = //height of the screen;
      SetWindowPos (hwnd, NULL, -4, -4, cx, cy, SWP_NOZORDER | SWP_FRAMECHANGED);

      They work pretty well, the minor boring thing is that the task bar (if Not autohide) is still there. it will not disappear unless I click it once? any solution? thanks, thanks. http://ihome.ust.hk/~zhaoming

      N Offline
      N Offline
      Nish Nishant
      wrote on last edited by
      #2

      Siuming wrote: SetWindowPos (hwnd, NULL, -4, -4, cx, cy, SWP_NOZORDER | SWP_FRAMECHANGED); Make that :-

      SetWindowPos (hwnd, HWND_TOPMOST, -4, -4, cx, cy, SWP_NOZORDER | SWP_FRAMECHANGED);


      Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

      PJ ArendsP 1 Reply Last reply
      0
      • N Nish Nishant

        Siuming wrote: SetWindowPos (hwnd, NULL, -4, -4, cx, cy, SWP_NOZORDER | SWP_FRAMECHANGED); Make that :-

        SetWindowPos (hwnd, HWND_TOPMOST, -4, -4, cx, cy, SWP_NOZORDER | SWP_FRAMECHANGED);


        Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

        PJ ArendsP Offline
        PJ ArendsP Offline
        PJ Arends
        wrote on last edited by
        #3

        Very close Nish, but if you want to make the window topmost, you have to drop the SWP_NOZORDER flag --- CPUA 0x5041 Sonork 100.11743 Chicken Little Within you lies the power for good - Use it!

        Within you lies the power for good; Use it!

        N 1 Reply Last reply
        0
        • PJ ArendsP PJ Arends

          Very close Nish, but if you want to make the window topmost, you have to drop the SWP_NOZORDER flag --- CPUA 0x5041 Sonork 100.11743 Chicken Little Within you lies the power for good - Use it!

          N Offline
          N Offline
          Nish Nishant
          wrote on last edited by
          #4

          Oops! :-O I wasn't thinking I guess. Basically I copy/pasted his line of code and changed the 2nd argument where he had used NULL :-O Thanks PJ :-)


          Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

          N 1 Reply Last reply
          0
          • N Nish Nishant

            Oops! :-O I wasn't thinking I guess. Basically I copy/pasted his line of code and changed the 2nd argument where he had used NULL :-O Thanks PJ :-)


            Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

            N Offline
            N Offline
            nilaysoft
            wrote on last edited by
            #5

            Many Thanks! It works! goal

            1 Reply Last reply
            0
            • N nilaysoft

              I want implement full screen mode in my small application. I wrote codes as follows:

              cx = //width of the screen;
              cy = //height of the screen;
              SetWindowPos (hwnd, NULL, -4, -4, cx, cy, SWP_NOZORDER | SWP_FRAMECHANGED);

              They work pretty well, the minor boring thing is that the task bar (if Not autohide) is still there. it will not disappear unless I click it once? any solution? thanks, thanks. http://ihome.ust.hk/~zhaoming

              N Offline
              N Offline
              Neha
              wrote on last edited by
              #6

              Hi, I have been trying the same thing,But my window is not shown properly. In my code cx=GetSystemMetrics(SM_CXFULLSCREEN); cy=GetSystemMetrics(SM_CYFULLSCREEN); Regards Neha

              N 1 Reply Last reply
              0
              • N Neha

                Hi, I have been trying the same thing,But my window is not shown properly. In my code cx=GetSystemMetrics(SM_CXFULLSCREEN); cy=GetSystemMetrics(SM_CYFULLSCREEN); Regards Neha

                N Offline
                N Offline
                nilaysoft
                wrote on last edited by
                #7

                Dear, What I've used are: int cx = GetSystemMetrics (SM_CXSCREEN); int cy = GetSystemMetrics (SM_CYSCREEN); int cyCaption = GetSystemMetrics(SM_CYCAPTION); int cyMenu = GetSystemMetrics(SM_CYMENU); SetWindowPos (hwnd, HWND_TOPMOST, -4, -(cyCaption + cyMenu + 4), screenx + 8, screeny + (cyCaption + cyMenu) + 8, SWP_FRAMECHANGED);

                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