]> source.dussan.org Git - tigervnc.git/commitdiff
Removed the "Full Screen" button from the toolbar.
authorgeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Sun, 17 Apr 2005 02:21:00 +0000 (02:21 +0000)
committergeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Sun, 17 Apr 2005 02:21:00 +0000 (02:21 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@290 3789f03b-4d11-0410-bbf8-ca57d06f2519

rfbplayer/rfbplayer.cxx

index 061c7177ac20e0afc9e4677532c1ff59531eb8b5..ba8450d0cc203e4827e933665d4511a63d828049 100644 (file)
@@ -381,9 +381,6 @@ RfbPlayer::processMainMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
         }
       }
       break;
-    case ID_FULLSCREEN:
-      MessageBox(getMainHandle(), "It is not working yet!", "RfbPlayer", MB_OK);
-      break;
     case ID_LOOP:
       options.loopPlayback = !options.loopPlayback;
       if (options.loopPlayback) CheckMenuItem(hMenu, ID_LOOP, MF_CHECKED);
@@ -634,13 +631,13 @@ void RfbPlayer::createToolBar(HWND parentHwnd) {
   tb.addButton(0, ID_PLAY);
   tb.addButton(1, ID_PAUSE);
   tb.addButton(2, ID_STOP);
-  tb.addButton(0, 0, TBSTATE_ENABLED, TBSTYLE_SEP);
-  tb.addButton(3, ID_FULLSCREEN);
+///  tb.addButton(0, 0, TBSTATE_ENABLED, TBSTYLE_SEP);
+///  tb.addButton(3, ID_FULLSCREEN);
   tb.addButton(0, 0, TBSTATE_ENABLED, TBSTYLE_SEP);
 
   // Create the static control for the time output
   tb.addButton(125, 0, TBSTATE_ENABLED, TBSTYLE_SEP);
-  tb.getButtonRect(6, &tRect);
+  tb.getButtonRect(4, &tRect);
   timeStatic = CreateWindowEx(0, "Static", "00m:00s (00m:00s)", 
     WS_CHILD | WS_VISIBLE, tRect.left, tRect.top+2, tRect.right-tRect.left, 
     tRect.bottom-tRect.top, tb.getHandle(), (HMENU)ID_TIME_STATIC, 
@@ -649,7 +646,7 @@ void RfbPlayer::createToolBar(HWND parentHwnd) {
     
   // Create the trackbar control for the time position
   tb.addButton(200, 0, TBSTATE_ENABLED, TBSTYLE_SEP);
-  tb.getButtonRect(8, &tRect);
+  tb.getButtonRect(6, &tRect);
   posTrackBar = CreateWindowEx(0, TRACKBAR_CLASS, "Trackbar Control", 
     WS_CHILD | WS_VISIBLE | TBS_AUTOTICKS | TBS_ENABLESELRANGE,
     tRect.left, tRect.top, tRect.right-tRect.left, tRect.bottom-tRect.top,
@@ -660,14 +657,14 @@ void RfbPlayer::createToolBar(HWND parentHwnd) {
 
   // Create the label with "Speed:" caption
   tb.addButton(50, 0, TBSTATE_ENABLED, TBSTYLE_SEP);
-  tb.getButtonRect(10, &tRect);
+  tb.getButtonRect(8, &tRect);
   CreateWindowEx(0, "Static", "Speed:", WS_CHILD | WS_VISIBLE, 
     tRect.left, tRect.top+2, tRect.right-tRect.left, tRect.bottom-tRect.top,
     tb.getHandle(), (HMENU)ID_SPEED_STATIC, GetModuleHandle(0), 0);
 
   // Create the edit control and the spin for the speed managing
   tb.addButton(60, 0, TBSTATE_ENABLED, TBSTYLE_SEP);
-  tb.getButtonRect(11, &tRect);
+  tb.getButtonRect(9, &tRect);
   speedEdit = CreateWindowEx(WS_EX_CLIENTEDGE, "Edit", "1.00", 
     WS_CHILD | WS_VISIBLE | ES_RIGHT, tRect.left, tRect.top, 
     tRect.right-tRect.left, tRect.bottom-tRect.top, parentHwnd,