<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[case WM_SIZE: if (message == WM_SIZE)   ???]]></title><description><![CDATA[<p>hallo,</p>
<p>hier ist Charles Petzold's interessante Code. Es gibt einige Probleme bei mir.<br />
also,</p>
<p>1.Frage: was so die</p>
<pre><code>WM_SIZE: if (message == WM_SIZE)
</code></pre>
<p>heissen? und was so die &quot;// fall through &quot; bedeuten?</p>
<p>2.Frage: ich verstehe diese</p>
<pre><code>rectScroll.bottom = cyChar * (cyClient / cyChar) ;
</code></pre>
<p>überhaupt nicht.</p>
<p>3.Frage:</p>
<pre><code>ScrollWindow(hwnd, 0, -cyChar, &amp;rectScroll, &amp;rectScroll);
</code></pre>
<p>wenn ich so schreiben:</p>
<pre><code>ScrollWindow(hwnd, 0, -cyChar, 0, &amp;rectScroll);
</code></pre>
<p>warum scroll das Window nicht entire?</p>
<pre><code>KEYVIEW1.C

LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM) ;

int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
                    PSTR szCmdLine, int iCmdShow)
{
     static TCHAR szAppName[] = TEXT (&quot;KeyView1&quot;) ;
     HWND         hwnd ;
     MSG          msg ;
     WNDCLASS     wndclass ;

     wndclass.style         = CS_HREDRAW | CS_VREDRAW ;
     wndclass.lpfnWndProc   = WndProc ;
     wndclass.cbClsExtra    = 0 ;
     wndclass.cbWndExtra    = 0 ;
     wndclass.hInstance     = hInstance ;
     wndclass.hIcon         = LoadIcon (NULL, IDI_APPLICATION) ;
     wndclass.hCursor       = LoadCursor (NULL, IDC_ARROW) ;
     wndclass.hbrBackground = (HBRUSH) GetStockObject (WHITE_BRUSH) ;
     wndclass.lpszMenuName  = NULL ;
     wndclass.lpszClassName = szAppName ;

     if (!RegisterClass (&amp;wndclass))
     {
          MessageBox (NULL, TEXT (&quot;This program requires Windows NT!&quot;), 
                      szAppName, MB_ICONERROR) ;
          return 0 ;
     }

     hwnd = CreateWindow (szAppName, TEXT (&quot;Keyboard Message Viewer #1&quot;),
                          WS_OVERLAPPEDWINDOW,
                          CW_USEDEFAULT, CW_USEDEFAULT,
                          CW_USEDEFAULT, CW_USEDEFAULT,
                          NULL, NULL, hInstance, NULL) ;

     ShowWindow (hwnd, iCmdShow) ;
     UpdateWindow (hwnd) ;

     while (GetMessage (&amp;msg, NULL, 0, 0))
     {
          TranslateMessage (&amp;msg) ;
          DispatchMessage (&amp;msg) ;
     }
     return msg.wParam ;
}

LRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
     static int   cxClientMax, cyClientMax, cxClient, cyClient, cxChar, cyChar ;
     static int   cLinesMax, cLines ;
     static PMSG  pmsg ;
     static RECT  rectScroll ;
     static TCHAR szTop[] = TEXT (&quot;Message        Key       Char     &quot;)
                            TEXT (&quot;Repeat Scan Ext ALT Prev Tran&quot;) ;
     static TCHAR szUnd[] = TEXT (&quot;_______        ___       ____     &quot;)
                            TEXT (&quot;______ ____ ___ ___ ____ ____&quot;) ;

     static TCHAR * szFormat[2] = { 

               TEXT (&quot;%-13s %3d %-15s%c%6u %4d %3s %3s %4s %4s&quot;),
               TEXT (&quot;%-13s            0x%04X%1s%c %6u %4d %3s %3s %4s %4s&quot;) } ;
     static TCHAR * szYes  = TEXT (&quot;Yes&quot;) ;
     static TCHAR * szNo   = TEXT (&quot;No&quot;) ;
     static TCHAR * szDown = TEXT (&quot;Down&quot;) ;
     static TCHAR * szUp   = TEXT (&quot;Up&quot;) ;

     static TCHAR * szMessage [] = { 
                         TEXT (&quot;WM_KEYDOWN&quot;),    TEXT (&quot;WM_KEYUP&quot;), 
                         TEXT (&quot;WM_CHAR&quot;),       TEXT (&quot;WM_DEADCHAR&quot;), 
                         TEXT (&quot;WM_SYSKEYDOWN&quot;), TEXT (&quot;WM_SYSKEYUP&quot;), 
                         TEXT (&quot;WM_SYSCHAR&quot;),    TEXT (&quot;WM_SYSDEADCHAR&quot;) } ;
     HDC          hdc ;
     int          i, iType ;
     PAINTSTRUCT  ps ;
     TCHAR        szBuffer[128], szKeyName [32] ;
     TEXTMETRIC   tm ;

     switch (message)
     {
     case WM_CREATE:
     case WM_DISPLAYCHANGE:

               // Get maximum size of client area

          cxClientMax = GetSystemMetrics (SM_CXMAXIMIZED) ;
          cyClientMax = GetSystemMetrics (SM_CYMAXIMIZED) ;

              // Get character size for fixed-pitch font

          hdc = GetDC (hwnd) ;

          SelectObject (hdc, GetStockObject (SYSTEM_FIXED_FONT)) ;
          GetTextMetrics (hdc, &amp;tm) ;
          cxChar = tm.tmAveCharWidth ;
          cyChar = tm.tmHeight ;

          ReleaseDC (hwnd, hdc) ;

               // Allocate memory for display lines

          if (pmsg) free (pmsg) ;

          cLinesMax = cyClientMax / cyChar ;
          pmsg = malloc (cLinesMax * sizeof (MSG)) ;
          cLines = 0 ;
                                   [b]// fall through[/b]
     case WM_SIZE:
          [b]if (message == WM_SIZE)[/b]
          {
               cxClient = LOWORD (lParam) ;
               cyClient = HIWORD (lParam) ;
          }
               // Calculate scrolling rectangle

          rectScroll.left   = 0 ;
          rectScroll.right  = cxClient ;
          rectScroll.top    = cyChar ;
          [b]rectScroll.bottom = cyChar * (cyClient / cyChar) ;[/b]

          [b]InvalidateRect (hwnd, NULL, TRUE) ;[/b]
          return 0 ;

     case WM_KEYDOWN:
     case WM_KEYUP:
     case WM_CHAR:
     case WM_DEADCHAR:
     case WM_SYSKEYDOWN:
     case WM_SYSKEYUP:
     case WM_SYSCHAR:
     case WM_SYSDEADCHAR: 

               // Rearrange storage array

          for (i = cLinesMax - 1 ; i &gt; 0 ; i--)
          {
               pmsg[i] = pmsg[i - 1] ;
          }
               // Store new message

          pmsg[0].hwnd = hwnd ;
          pmsg[0].message = message ;
          pmsg[0].wParam = wParam ;
          pmsg[0].lParam = lParam ;

          cLines = min (cLines + 1, cLinesMax) ;

               // Scroll up the display

          [b]ScrollWindow (hwnd, 0, -cyChar, &amp;rectScroll, &amp;rectScroll) ;[/b]

          break ;        // i.e., call DefWindowProc so Sys messages work

     case WM_PAINT:
          hdc = BeginPaint (hwnd, &amp;ps) ;

          SelectObject (hdc, GetStockObject (SYSTEM_FIXED_FONT)) ;
          SetBkMode (hdc, TRANSPARENT) ;
          TextOut (hdc, 0, 0, szTop, lstrlen (szTop)) ;
          TextOut (hdc, 0, 0, szUnd, lstrlen (szUnd)) ;

          for (i = 0 ; i &lt; min (cLines, cyClient / cyChar - 1) ; i++)
          {
               iType = pmsg[i].message == WM_CHAR ||
                       pmsg[i].message == WM_SYSCHAR ||
                       pmsg[i].message == WM_DEADCHAR ||
                       pmsg[i].message == WM_SYSDEADCHAR ;

               GetKeyNameText (pmsg[i].lParam, szKeyName, 
                               sizeof (szKeyName) / sizeof (TCHAR)) ;

               TextOut (hdc, 0, (cyClient / cyChar - 1 - i) * cyChar, szBuffer,
                        wsprintf (szBuffer, szFormat [iType],
                             szMessage [pmsg[i].message - WM_KEYFIRST],
                             pmsg[i].wParam,
                             (PTSTR) (iType ? TEXT (&quot; &quot;) : szKeyName),
                             (TCHAR) (iType ? pmsg[i].wParam : ` `),
                             LOWORD (pmsg[i].lParam),
                             HIWORD (pmsg[i].lParam) &amp; 0xFF,
                             0x01000000 &amp; pmsg[i].lParam ? szYes  : szNo,
                             0x20000000 &amp; pmsg[i].lParam ? szYes  : szNo,
                             0x40000000 &amp; pmsg[i].lParam ? szDown : szUp,
                             0x80000000 &amp; pmsg[i].lParam ? szUp   : szDown)) ;
          }
          EndPaint (hwnd, &amp;ps) ;
          return 0 ;

     case WM_DESTROY:
          PostQuitMessage (0) ;
          return 0 ;
     }
     return DefWindowProc (hwnd, message, wParam, lParam) ;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/201520/case-wm_size-if-message-wm_size</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 05:39:09 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/201520.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 31 Dec 2007 09:49:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to case WM_SIZE: if (message == WM_SIZE)   ??? on Mon, 31 Dec 2007 15:34:10 GMT]]></title><description><![CDATA[<p>hallo,</p>
<p>hier ist Charles Petzold's interessante Code. Es gibt einige Probleme bei mir.<br />
also,</p>
<p>1.Frage: was so die</p>
<pre><code>WM_SIZE: if (message == WM_SIZE)
</code></pre>
<p>heissen? und was so die &quot;// fall through &quot; bedeuten?</p>
<p>2.Frage: ich verstehe diese</p>
<pre><code>rectScroll.bottom = cyChar * (cyClient / cyChar) ;
</code></pre>
<p>überhaupt nicht.</p>
<p>3.Frage:</p>
<pre><code>ScrollWindow(hwnd, 0, -cyChar, &amp;rectScroll, &amp;rectScroll);
</code></pre>
<p>wenn ich so schreiben:</p>
<pre><code>ScrollWindow(hwnd, 0, -cyChar, 0, &amp;rectScroll);
</code></pre>
<p>warum scroll das Window nicht entire?</p>
<pre><code>KEYVIEW1.C

LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM) ;

int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
                    PSTR szCmdLine, int iCmdShow)
{
     static TCHAR szAppName[] = TEXT (&quot;KeyView1&quot;) ;
     HWND         hwnd ;
     MSG          msg ;
     WNDCLASS     wndclass ;

     wndclass.style         = CS_HREDRAW | CS_VREDRAW ;
     wndclass.lpfnWndProc   = WndProc ;
     wndclass.cbClsExtra    = 0 ;
     wndclass.cbWndExtra    = 0 ;
     wndclass.hInstance     = hInstance ;
     wndclass.hIcon         = LoadIcon (NULL, IDI_APPLICATION) ;
     wndclass.hCursor       = LoadCursor (NULL, IDC_ARROW) ;
     wndclass.hbrBackground = (HBRUSH) GetStockObject (WHITE_BRUSH) ;
     wndclass.lpszMenuName  = NULL ;
     wndclass.lpszClassName = szAppName ;

     if (!RegisterClass (&amp;wndclass))
     {
          MessageBox (NULL, TEXT (&quot;This program requires Windows NT!&quot;), 
                      szAppName, MB_ICONERROR) ;
          return 0 ;
     }

     hwnd = CreateWindow (szAppName, TEXT (&quot;Keyboard Message Viewer #1&quot;),
                          WS_OVERLAPPEDWINDOW,
                          CW_USEDEFAULT, CW_USEDEFAULT,
                          CW_USEDEFAULT, CW_USEDEFAULT,
                          NULL, NULL, hInstance, NULL) ;

     ShowWindow (hwnd, iCmdShow) ;
     UpdateWindow (hwnd) ;

     while (GetMessage (&amp;msg, NULL, 0, 0))
     {
          TranslateMessage (&amp;msg) ;
          DispatchMessage (&amp;msg) ;
     }
     return msg.wParam ;
}

LRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
     static int   cxClientMax, cyClientMax, cxClient, cyClient, cxChar, cyChar ;
     static int   cLinesMax, cLines ;
     static PMSG  pmsg ;
     static RECT  rectScroll ;
     static TCHAR szTop[] = TEXT (&quot;Message        Key       Char     &quot;)
                            TEXT (&quot;Repeat Scan Ext ALT Prev Tran&quot;) ;
     static TCHAR szUnd[] = TEXT (&quot;_______        ___       ____     &quot;)
                            TEXT (&quot;______ ____ ___ ___ ____ ____&quot;) ;

     static TCHAR * szFormat[2] = { 

               TEXT (&quot;%-13s %3d %-15s%c%6u %4d %3s %3s %4s %4s&quot;),
               TEXT (&quot;%-13s            0x%04X%1s%c %6u %4d %3s %3s %4s %4s&quot;) } ;
     static TCHAR * szYes  = TEXT (&quot;Yes&quot;) ;
     static TCHAR * szNo   = TEXT (&quot;No&quot;) ;
     static TCHAR * szDown = TEXT (&quot;Down&quot;) ;
     static TCHAR * szUp   = TEXT (&quot;Up&quot;) ;

     static TCHAR * szMessage [] = { 
                         TEXT (&quot;WM_KEYDOWN&quot;),    TEXT (&quot;WM_KEYUP&quot;), 
                         TEXT (&quot;WM_CHAR&quot;),       TEXT (&quot;WM_DEADCHAR&quot;), 
                         TEXT (&quot;WM_SYSKEYDOWN&quot;), TEXT (&quot;WM_SYSKEYUP&quot;), 
                         TEXT (&quot;WM_SYSCHAR&quot;),    TEXT (&quot;WM_SYSDEADCHAR&quot;) } ;
     HDC          hdc ;
     int          i, iType ;
     PAINTSTRUCT  ps ;
     TCHAR        szBuffer[128], szKeyName [32] ;
     TEXTMETRIC   tm ;

     switch (message)
     {
     case WM_CREATE:
     case WM_DISPLAYCHANGE:

               // Get maximum size of client area

          cxClientMax = GetSystemMetrics (SM_CXMAXIMIZED) ;
          cyClientMax = GetSystemMetrics (SM_CYMAXIMIZED) ;

              // Get character size for fixed-pitch font

          hdc = GetDC (hwnd) ;

          SelectObject (hdc, GetStockObject (SYSTEM_FIXED_FONT)) ;
          GetTextMetrics (hdc, &amp;tm) ;
          cxChar = tm.tmAveCharWidth ;
          cyChar = tm.tmHeight ;

          ReleaseDC (hwnd, hdc) ;

               // Allocate memory for display lines

          if (pmsg) free (pmsg) ;

          cLinesMax = cyClientMax / cyChar ;
          pmsg = malloc (cLinesMax * sizeof (MSG)) ;
          cLines = 0 ;
                                   [b]// fall through[/b]
     case WM_SIZE:
          [b]if (message == WM_SIZE)[/b]
          {
               cxClient = LOWORD (lParam) ;
               cyClient = HIWORD (lParam) ;
          }
               // Calculate scrolling rectangle

          rectScroll.left   = 0 ;
          rectScroll.right  = cxClient ;
          rectScroll.top    = cyChar ;
          [b]rectScroll.bottom = cyChar * (cyClient / cyChar) ;[/b]

          [b]InvalidateRect (hwnd, NULL, TRUE) ;[/b]
          return 0 ;

     case WM_KEYDOWN:
     case WM_KEYUP:
     case WM_CHAR:
     case WM_DEADCHAR:
     case WM_SYSKEYDOWN:
     case WM_SYSKEYUP:
     case WM_SYSCHAR:
     case WM_SYSDEADCHAR: 

               // Rearrange storage array

          for (i = cLinesMax - 1 ; i &gt; 0 ; i--)
          {
               pmsg[i] = pmsg[i - 1] ;
          }
               // Store new message

          pmsg[0].hwnd = hwnd ;
          pmsg[0].message = message ;
          pmsg[0].wParam = wParam ;
          pmsg[0].lParam = lParam ;

          cLines = min (cLines + 1, cLinesMax) ;

               // Scroll up the display

          [b]ScrollWindow (hwnd, 0, -cyChar, &amp;rectScroll, &amp;rectScroll) ;[/b]

          break ;        // i.e., call DefWindowProc so Sys messages work

     case WM_PAINT:
          hdc = BeginPaint (hwnd, &amp;ps) ;

          SelectObject (hdc, GetStockObject (SYSTEM_FIXED_FONT)) ;
          SetBkMode (hdc, TRANSPARENT) ;
          TextOut (hdc, 0, 0, szTop, lstrlen (szTop)) ;
          TextOut (hdc, 0, 0, szUnd, lstrlen (szUnd)) ;

          for (i = 0 ; i &lt; min (cLines, cyClient / cyChar - 1) ; i++)
          {
               iType = pmsg[i].message == WM_CHAR ||
                       pmsg[i].message == WM_SYSCHAR ||
                       pmsg[i].message == WM_DEADCHAR ||
                       pmsg[i].message == WM_SYSDEADCHAR ;

               GetKeyNameText (pmsg[i].lParam, szKeyName, 
                               sizeof (szKeyName) / sizeof (TCHAR)) ;

               TextOut (hdc, 0, (cyClient / cyChar - 1 - i) * cyChar, szBuffer,
                        wsprintf (szBuffer, szFormat [iType],
                             szMessage [pmsg[i].message - WM_KEYFIRST],
                             pmsg[i].wParam,
                             (PTSTR) (iType ? TEXT (&quot; &quot;) : szKeyName),
                             (TCHAR) (iType ? pmsg[i].wParam : ` `),
                             LOWORD (pmsg[i].lParam),
                             HIWORD (pmsg[i].lParam) &amp; 0xFF,
                             0x01000000 &amp; pmsg[i].lParam ? szYes  : szNo,
                             0x20000000 &amp; pmsg[i].lParam ? szYes  : szNo,
                             0x40000000 &amp; pmsg[i].lParam ? szDown : szUp,
                             0x80000000 &amp; pmsg[i].lParam ? szUp   : szDown)) ;
          }
          EndPaint (hwnd, &amp;ps) ;
          return 0 ;

     case WM_DESTROY:
          PostQuitMessage (0) ;
          return 0 ;
     }
     return DefWindowProc (hwnd, message, wParam, lParam) ;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1428435</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1428435</guid><dc:creator><![CDATA[damo]]></dc:creator><pubDate>Mon, 31 Dec 2007 15:34:10 GMT</pubDate></item><item><title><![CDATA[Reply to case WM_SIZE: if (message == WM_SIZE)   ??? on Mon, 31 Dec 2007 10:21:43 GMT]]></title><description><![CDATA[<p>Da hat Petzold ein wenig gepfuscht.</p>
<p>Dieser Code &quot;in&quot; der WM_SIZE</p>
<pre><code class="language-cpp">...
 rectScroll.left   = 0 ;
 rectScroll.right  = cxClient ;
 rectScroll.top    = cyChar ;
 rectScroll.bottom = cyChar * (cyClient / cyChar) ;

 InvalidateRect (hwnd, NULL, TRUE) ;
 return 0 ;
...
</code></pre>
<p>soll ausgeführt werden bei WM_CREATE, WM_DISPLAYCHANGE und WM_SIZE.</p>
<p>Dieser hier aber</p>
<pre><code class="language-cpp">// if (message == WM_SIZE)
// {
  cxClient = LOWORD (lParam) ;
  cyClient = HIWORD (lParam) ;
// }
</code></pre>
<p>nur bei WM_SIZE.</p>
<p>Probier mal das umzuformulieren !</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1428447</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1428447</guid><dc:creator><![CDATA[fallingdown]]></dc:creator><pubDate>Mon, 31 Dec 2007 10:21:43 GMT</pubDate></item><item><title><![CDATA[Reply to case WM_SIZE: if (message == WM_SIZE)   ??? on Mon, 31 Dec 2007 12:09:52 GMT]]></title><description><![CDATA[<p>@fallingdown : haaaa, danke sehr!<br />
und hast du die Lust, mir weiter zu helfen?</p>
<p>2.Frage: ich verstehe diese</p>
<pre><code>rectScroll.bottom = cyChar * (cyClient / cyChar) ;
</code></pre>
<p>überhaupt nicht.</p>
<p>3.Frage:</p>
<pre><code>ScrollWindow(hwnd, 0, -cyChar, &amp;rectScroll, &amp;rectScroll);
</code></pre>
<p>wenn ich so schreiben:</p>
<pre><code>ScrollWindow(hwnd, 0, -cyChar, 0, &amp;rectScroll);
</code></pre>
<p>warum scroll das Window nicht entire?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1428451</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1428451</guid><dc:creator><![CDATA[damo]]></dc:creator><pubDate>Mon, 31 Dec 2007 12:09:52 GMT</pubDate></item><item><title><![CDATA[Reply to case WM_SIZE: if (message == WM_SIZE)   ??? on Tue, 01 Jan 2008 18:02:40 GMT]]></title><description><![CDATA[<p>fallingdown schrieb:</p>
<blockquote>
<p>Da hat Petzold ein wenig gepfuscht.</p>
</blockquote>
<p>Wo hat er gefuscht?</p>
<p>fallingdown schrieb:</p>
<blockquote>
<p>Dieser Code &quot;in&quot; der WM_SIZE</p>
<pre><code class="language-cpp">...
 rectScroll.left   = 0 ;
 rectScroll.right  = cxClient ;
 rectScroll.top    = cyChar ;
 rectScroll.bottom = cyChar * (cyClient / cyChar) ;

 InvalidateRect (hwnd, NULL, TRUE) ;
 return 0 ;
...
</code></pre>
<p>soll ausgeführt werden bei WM_CREATE, WM_DISPLAYCHANGE und WM_SIZE.</p>
</blockquote>
<p>Wir er ja auch!</p>
<p>fallingdown schrieb:</p>
<blockquote>
<p>Dieser hier aber</p>
<pre><code class="language-cpp">// if (message == WM_SIZE)
// {
  cxClient = LOWORD (lParam) ;
  cyClient = HIWORD (lParam) ;
// }
</code></pre>
<p>nur bei WM_SIZE.</p>
<p>Probier mal das umzuformulieren !</p>
</blockquote>
<p>Was soll die Auskommentierung?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1428913</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1428913</guid><dc:creator><![CDATA[WilMen]]></dc:creator><pubDate>Tue, 01 Jan 2008 18:02:40 GMT</pubDate></item><item><title><![CDATA[Reply to case WM_SIZE: if (message == WM_SIZE)   ??? on Fri, 04 Jan 2008 08:50:14 GMT]]></title><description><![CDATA[<pre><code>rectScroll.bottom = cyChar * (cyClient / cyChar) ;
</code></pre>
<p>Wenn cyClient oder cyChar vom Type float wären, würde das gar nichts bringen. Warscheinlich will er dass nur eine n-fache (n ist eine ganze Zahl) Zahl von cyChars innerhalb von dem rectScroll.bottom Platz hat.</p>
<p>Meiner Meinung ist es dasselbe wie:</p>
<pre><code>rectScroll.bottom = cyClient-(cyClient%cyChar);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1430415</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1430415</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Fri, 04 Jan 2008 08:50:14 GMT</pubDate></item><item><title><![CDATA[Reply to case WM_SIZE: if (message == WM_SIZE)   ??? on Fri, 04 Jan 2008 10:54:40 GMT]]></title><description><![CDATA[<blockquote>
<p>Warscheinlich will er dass nur eine n-fache (n ist eine ganze Zahl) Zahl von cyChars innerhalb von dem rectScroll.bottom Platz hat.</p>
</blockquote>
<p>@SilentRob, Ja, richtig!!! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /> Petzold ist sehr versiert, Nur Du und @fallingdown können mein Problem richtig verstehen, und ich habe nur für eine Monat mit API gearbeitet vielen vielen Dank!!! und noch mal vielen Dank für @fallingdown!!! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1430488</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1430488</guid><dc:creator><![CDATA[damo]]></dc:creator><pubDate>Fri, 04 Jan 2008 10:54:40 GMT</pubDate></item></channel></rss>