From: <cad...@li...> - 2005-11-27 01:03:22
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns=3D"http://www.w3.org/1999/xhtml"> <head><style type=3D"text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: = #fff; } #msg dt { float: left; width: 6em; font-weight: bold; } #msg dt:after { content:':';} #msg dl, #msg dt, #msg ul, #msg li { font-family: verdana,arial,helvetica= ,sans-serif; font-size: 10pt; } #msg dl a { font-weight: bold} #msg dl a:link { color:#fc3; } #msg dl a:active { color:#ff0; } #msg dl a:visited { color:#cc6; } h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; fo= nt-weight: bold; } #msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padd= ing: 6px; } #msg ul, pre { overflow: auto; } #patch { width: 100%; } #patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt= ;padding:8px;background:#369;color:#fff;margin:0;} #patch .propset h4, #patch .binary h4 {margin:0;} #patch pre {padding:0;line-height:1.2em;margin:0;} #patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:aut= o;} #patch .propset .diff, #patch .binary .diff {padding:10px 0;} #patch span {display:block;padding:0 10px;} #patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patc= h .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;} #patch ins {background:#dfd;text-decoration:none;display:block;padding:0 = 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 = 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[282] tiki/win32/src/platgl.cpp: TIKI: Win32: Correctly set the wi= ndow size</title> </head> <body> <div id=3D"msg"> <dl> <dt>Revision</dt> <dd>282</dd> <dt>Author</dt> <dd>sam.steele</dd> <dt>Date</dt> <dd>2005-11-26 16:55:14 -0800 (Sat, 26 Nov 2005)</dd> </dl> <h3>Log Message</h3> <pre>TIKI: Win32: Correctly set the window size</pre> <h3>Modified Paths</h3> <ul> <li><a href=3D"#tikiwin32srcplatglcpp">tiki/win32/src/platgl.cpp</a></li> </ul> </div> <div id=3D"patch"> <h3>Diff</h3> <a id=3D"tikiwin32srcplatglcpp"></a> <div class=3D"modfile"><h4>Modified: tiki/win32/src/platgl.cpp (281 =3D> = 282)</h4> <pre class=3D"diff"> <span class=3D"info">--- tiki/win32/src/platgl.cpp 2005-11-27 00:54:24 UT= C (rev 281) +++ tiki/win32/src/platgl.cpp 2005-11-27 00:55:14 UTC (rev 282) </span><span class=3D"lines">@@ -62,7 +62,11 @@ </span><span class=3D"cx"> { </span><span class=3D"cx"> MSG msg; </span><span class=3D"cx"> WNDCLASSEX wc; </span><del>- </del><ins>+ RECT WindowRect; // Grabs Rectangle Upper Left / Lower R= ight Values + WindowRect.left=3D(long)0; // Set Left Value To 0 + WindowRect.right=3D(long)m_targetW; // Set Right Value To Requested Wi= dth + WindowRect.top=3D(long)0; // Set Top Value To 0 + WindowRect.bottom=3D(long)m_targetH; // Set Bottom Value To Requested = Height </ins><span class=3D"cx"> m_hInstance =3D hInst; </span><span class=3D"cx">=20 </span><span class=3D"cx"> wc.cbSize =3D sizeof(wc); </span><span class=3D"lines">@@ -81,9 +85,10 @@ </span><span class=3D"cx"> if(!RegisterClassEx(&wc)) </span><span class=3D"cx"> return FALSE; </span><span class=3D"cx">=20 </span><del>- // XXX Window is not create with the right size. It seems t= o include the title bar and frame. - m_hWndMain =3D CreateWindow(szAppName, szAppName, WS_OVERLAPPEDWINDOW, = 0, 0, m_targetW + 10, m_targetH + 40, NULL, NULL, m_hInstance, NULL); </del><ins>+ AdjustWindowRect(&WindowRect, WS_OVERLAPPEDWINDOW, FALSE= ); </ins><span class=3D"cx">=20 </span><ins>+ m_hWndMain =3D CreateWindow(szAppName, szAppName, WS_OVERLA= PPEDWINDOW, 0, 0, WindowRect.right-WindowRect.left, WindowRect.bottom-Win= dowRect.top, NULL, NULL, m_hInstance, NULL); + </ins><span class=3D"cx"> if(!m_hWndMain) </span><span class=3D"cx"> return FALSE; </span><span class=3D"cx">=20 </span></pre> </div> </div> </body> </html> |