<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 11">
<meta name=Originator content="Microsoft Word 11">
<link rel=File-List href="cid:filelist.xml@01C8E26D.59ED3690">
<link rel=Edit-Time-Data href="cid:editdata.mso">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:ValidateAgainstSchemas/>
  <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
  <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
  <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
   <w:UseWord2002TableStyleRules/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:LatentStyles DefLockedState="false" LatentStyleCount="156">
 </w:LatentStyles>
</xml><![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;
        mso-font-charset:0;
        mso-generic-font-family:swiss;
        mso-font-pitch:variable;
        mso-font-signature:1627421319 -2147483648 8 0 66047 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:"";
        margin:0in;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;
        text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;
        text-underline:single;}
span.EmailStyle17
        {mso-style-type:personal;
        mso-style-noshow:yes;
        mso-ansi-font-size:10.0pt;
        mso-bidi-font-size:10.0pt;
        font-family:Arial;
        mso-ascii-font-family:Arial;
        mso-hansi-font-family:Arial;
        mso-bidi-font-family:Arial;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        mso-style-noshow:yes;
        mso-ansi-font-size:10.0pt;
        mso-bidi-font-size:10.0pt;
        font-family:Arial;
        mso-ascii-font-family:Arial;
        mso-hansi-font-family:Arial;
        mso-bidi-font-family:Arial;
        color:navy;}
span.SpellE
        {mso-style-name:"";
        mso-spl-e:yes;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;
        mso-header-margin:.5in;
        mso-footer-margin:.5in;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */ 
 table.MsoNormalTable
        {mso-style-name:"Table Normal";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0in 5.4pt 0in 5.4pt;
        mso-para-margin:0in;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";
        mso-ansi-language:#0400;
        mso-fareast-language:#0400;
        mso-bidi-language:#0400;}
</style>
<![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple style='tab-interval:.5in'>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Has no one run into this before? I’ve
also tried creating a window in MFC and using its <span class=SpellE>WindowData</span>
object as the inherited window data object. That did not work either. Any tips
from anyone that has done this before?<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy;mso-no-proof:yes'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy;mso-no-proof:yes'> </span></font><o:p></o:p></p>

</div>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
osg-users-bounces@lists.openscenegraph.org
[mailto:osg-users-bounces@lists.openscenegraph.org] <b><span style='font-weight:
bold'>On Behalf Of </span></b>spowers@gdrs.com<br>
<b><span style='font-weight:bold'>Sent:</span></b> Monday, July 07, 2008 11:41
AM<br>
<b><span style='font-weight:bold'>To:</span></b>
osg-users@lists.openscenegraph.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> [osg-users] MFC
Fullscreen With Multiple Monitors</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I’m having a problem with inheriting window data from
an MFC window in OSG 2.2.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>When I run an application with a dual monitor display the
application runs and OSG starts but it starts in fullscreen mode rather than
inheriting the MFC window size and location.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>When I run the same application on the same machine but with
only a single monitor the OSG inherits the MFC window correctly.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Is there something that I’m missing?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Here is the code I use to create the window (borrowed from
the MFC viewer example):<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span><b><font color="#400080"><span style='color:#400080;
font-weight:bold'>// Local Variable to hold window size data</span></font></b><font
color="#400080"><span style='color:#400080'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span>RECT rect<b><font color=red><span style='color:red;font-weight:
bold'>;</span></font></b><font color=red><span style='color:red'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 color=red face="Courier New"><span style='font-size:8.0pt;font-family:
"Courier New";color:red;background:white;mso-highlight:white;mso-no-proof:yes'><o:p> </o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span><b><font color="#400080"><span style='color:#400080;
font-weight:bold'>// Create the viewer for this window</span></font></b><font
color="#400080"><span style='color:#400080'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span>mViewer <b><font color=red><span style='color:red;font-weight:
bold'>=</span></font></b> <b><font color="#408080"><span style='color:#408080;
font-weight:bold'>new</span></font></b> osgViewer<b><font color=red><span
style='color:red;font-weight:bold'>::</span></font></b>Viewer<b><font
color=red><span style='color:red;font-weight:bold'>();</span></font></b><font
color=red><span style='color:red'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 color=red face="Courier New"><span style='font-size:8.0pt;font-family:
"Courier New";color:red;background:white;mso-highlight:white;mso-no-proof:yes'><o:p> </o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span><b><font color="#400080"><span style='color:#400080;
font-weight:bold'>//// Add a Stats Handler to the viewer</span></font></b><font
color="#400080"><span style='color:#400080'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span>mViewer<b><font color=red><span style='color:red;font-weight:
bold'>-></span></font></b>addEventHandler<b><font color=red><span
style='color:red;font-weight:bold'>(</span></font><font color="#408080"><span
style='color:#408080'>new</span></font></b> osgViewer<b><font color=red><span
style='color:red;font-weight:bold'>::</span></font></b>StatsHandler<b><font
color=red><span style='color:red;font-weight:bold'>);</span></font></b><font
color=red><span style='color:red'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 color=red face="Courier New"><span style='font-size:8.0pt;font-family:
"Courier New";color:red;background:white;mso-highlight:white;mso-no-proof:yes'><o:p> </o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span><b><font color="#400080"><span style='color:#400080;
font-weight:bold'>//// Get the current window size</span></font></b><font
color="#400080"><span style='color:#400080'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span><b><font color=red><span style='color:red;font-weight:bold'>::</span></font></b>GetWindowRect<b><font
color=red><span style='color:red;font-weight:bold'>(</span></font></b>m_hWnd<b><font
color=red><span style='color:red;font-weight:bold'>,</span></font></b> <b><font
color=red><span style='color:red;font-weight:bold'>&</span></font></b>rect<b><font
color=red><span style='color:red;font-weight:bold'>);</span></font></b><font
color=red><span style='color:red'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 color=red face="Courier New"><span style='font-size:8.0pt;font-family:
"Courier New";color:red;background:white;mso-highlight:white;mso-no-proof:yes'><o:p> </o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span><b><font color="#400080"><span style='color:#400080;
font-weight:bold'>//// Init the GraphicsContext Traits</span></font></b><font
color="#400080"><span style='color:#400080'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span>osg<b><font color=red><span style='color:red;font-weight:bold'>::</span></font></b>ref_ptr<b><font
color=red><span style='color:red;font-weight:bold'><</span></font></b>osg<b><font
color=red><span style='color:red;font-weight:bold'>::</span></font></b>GraphicsContext<b><font
color=red><span style='color:red;font-weight:bold'>::</span></font></b>Traits<b><font
color=red><span style='color:red;font-weight:bold'>></span></font></b>
traits <b><font color=red><span style='color:red;font-weight:bold'>=</span></font></b>
<b><font color="#408080"><span style='color:#408080;font-weight:bold'>new</span></font></b>
osg<b><font color=red><span style='color:red;font-weight:bold'>::</span></font></b>GraphicsContext<b><font
color=red><span style='color:red;font-weight:bold'>::</span></font></b>Traits<b><font
color=red><span style='color:red;font-weight:bold'>;</span></font></b><font
color=red><span style='color:red'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 color=red face="Courier New"><span style='font-size:8.0pt;font-family:
"Courier New";color:red;background:white;mso-highlight:white;mso-no-proof:yes'><o:p> </o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span><b><font color="#400080"><span style='color:#400080;
font-weight:bold'>//// Init the Windata Variable that holds the handle for the
Window to display OSG in.</span></font></b><font color="#400080"><span
style='color:#400080'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span>osg<b><font color=red><span style='color:red;font-weight:bold'>::</span></font></b>ref_ptr<b><font
color=red><span style='color:red;font-weight:bold'><</span></font></b>osg<b><font
color=red><span style='color:red;font-weight:bold'>::</span></font></b>Referenced<b><font
color=red><span style='color:red;font-weight:bold'>></span></font></b>
windata <b><font color=red><span style='color:red;font-weight:bold'>=</span></font></b>
<b><font color="#408080"><span style='color:#408080;font-weight:bold'>new</span></font></b>
osgViewer<b><font color=red><span style='color:red;font-weight:bold'>::</span></font></b>GraphicsWindowWin32<b><font
color=red><span style='color:red;font-weight:bold'>::</span></font></b>WindowData<b><font
color=red><span style='color:red;font-weight:bold'>(</span></font></b>m_hWnd<b><font
color=red><span style='color:red;font-weight:bold'>);</span></font></b><font
color=red><span style='color:red'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 color=red face="Courier New"><span style='font-size:8.0pt;font-family:
"Courier New";color:red;background:white;mso-highlight:white;mso-no-proof:yes'><o:p> </o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span><b><font color="#400080"><span style='color:#400080;
font-weight:bold'>// Setup the traits parameters</span></font></b><font
color="#400080"><span style='color:#400080'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span>traits<b><font color=red><span style='color:red;font-weight:
bold'>-></span></font></b>x <b><font color=red><span style='color:red;
font-weight:bold'>=</span></font></b> 0<b><font color=red><span
style='color:red;font-weight:bold'>;</span></font></b><font color=red><span
style='color:red'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span>traits<b><font color=red><span style='color:red;font-weight:
bold'>-></span></font></b>y <b><font color=red><span style='color:red;
font-weight:bold'>=</span></font></b> 0<b><font color=red><span
style='color:red;font-weight:bold'>;</span></font></b><font color=red><span
style='color:red'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span>traits<b><font color=red><span style='color:red;font-weight:
bold'>-></span></font></b>width <b><font color=red><span style='color:red;
font-weight:bold'>=</span></font></b> rect<b><font color=red><span
style='color:red;font-weight:bold'>.</span></font></b>right <b><font color=red><span
style='color:red;font-weight:bold'>-</span></font></b> rect<b><font color=red><span
style='color:red;font-weight:bold'>.</span></font></b>left<b><font color=red><span
style='color:red;font-weight:bold'>;</span></font></b><font color=red><span
style='color:red'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span>traits<b><font color=red><span style='color:red;font-weight:
bold'>-></span></font></b>height <b><font color=red><span style='color:red;
font-weight:bold'>=</span></font></b> rect<b><font color=red><span
style='color:red;font-weight:bold'>.</span></font></b>bottom <b><font
color=red><span style='color:red;font-weight:bold'>-</span></font></b> rect<b><font
color=red><span style='color:red;font-weight:bold'>.</span></font></b>top<b><font
color=red><span style='color:red;font-weight:bold'>;</span></font></b><font
color=red><span style='color:red'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span>traits<b><font color=red><span style='color:red;font-weight:
bold'>-></span></font></b>windowDecoration <b><font color=red><span
style='color:red;font-weight:bold'>=</span></font></b> <b><font color="#408080"><span
style='color:#408080;font-weight:bold'>false</span></font><font color=red><span
style='color:red'>;</span></font></b><font color=red><span style='color:red'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span>traits<b><font color=red><span style='color:red;font-weight:
bold'>-></span></font></b>doubleBuffer <b><font color=red><span
style='color:red;font-weight:bold'>=</span></font></b> <b><font color="#408080"><span
style='color:#408080;font-weight:bold'>true</span></font><font color=red><span
style='color:red'>;</span></font></b><font color=red><span style='color:red'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span>traits<b><font color=red><span style='color:red;font-weight:
bold'>-></span></font></b>sharedContext <b><font color=red><span
style='color:red;font-weight:bold'>=</span></font></b> 0<b><font color=red><span
style='color:red;font-weight:bold'>;</span></font></b><font color=red><span
style='color:red'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span>traits<b><font color=red><span style='color:red;font-weight:
bold'>-></span></font></b>setInheritedWindowPixelFormat <b><font color=red><span
style='color:red;font-weight:bold'>=</span></font></b> <b><font color="#408080"><span
style='color:#408080;font-weight:bold'>true</span></font><font color=red><span
style='color:red'>;</span></font></b><font color=red><span style='color:red'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span>traits<b><font color=red><span style='color:red;font-weight:
bold'>-></span></font></b>inheritedWindowData <b><font color=red><span
style='color:red;font-weight:bold'>=</span></font></b> windata<b><font
color=red><span style='color:red;font-weight:bold'>;</span></font></b><font
color=red><span style='color:red'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 color=red face="Courier New"><span style='font-size:8.0pt;font-family:
"Courier New";color:red;background:white;mso-highlight:white;mso-no-proof:yes'><o:p> </o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span><b><font color="#400080"><span style='color:#400080;
font-weight:bold'>// Create the Graphics Context</span></font></b><font
color="#400080"><span style='color:#400080'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span>osg<b><font color=red><span style='color:red;font-weight:bold'>::</span></font></b>GraphicsContext<b><font
color=red><span style='color:red;font-weight:bold'>*</span></font></b> gc <b><font
color=red><span style='color:red;font-weight:bold'>=</span></font></b> osg<b><font
color=red><span style='color:red;font-weight:bold'>::</span></font></b>GraphicsContext<b><font
color=red><span style='color:red;font-weight:bold'>::</span></font></b>createGraphicsContext<b><font
color=red><span style='color:red;font-weight:bold'>(</span></font></b>traits<b><font
color=red><span style='color:red;font-weight:bold'>.</span></font></b>get<b><font
color=red><span style='color:red;font-weight:bold'>());</span></font></b><font
color=red><span style='color:red'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 color=red face="Courier New"><span style='font-size:8.0pt;font-family:
"Courier New";color:red;background:white;mso-highlight:white;mso-no-proof:yes'><o:p> </o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span><b><font color="#400080"><span style='color:#400080;
font-weight:bold'>// Init a new Camera (Master for this View)</span></font></b><font
color="#400080"><span style='color:#400080'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span>_camera <b><font color=red><span style='color:red;font-weight:
bold'>=</span></font></b> <b><font color="#408080"><span style='color:#408080;
font-weight:bold'>new</span></font></b> osg<b><font color=red><span
style='color:red;font-weight:bold'>::</span></font></b>Camera<b><font
color=red><span style='color:red;font-weight:bold'>;</span></font></b><font
color=red><span style='color:red'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 color=red face="Courier New"><span style='font-size:8.0pt;font-family:
"Courier New";color:red;background:white;mso-highlight:white;mso-no-proof:yes'><o:p> </o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span><b><font color="#400080"><span style='color:#400080;
font-weight:bold'>// Assign Graphics Context to the Camera</span></font></b><font
color="#400080"><span style='color:#400080'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span>_camera<b><font color=red><span style='color:red;font-weight:
bold'>-></span></font></b>setGraphicsContext<b><font color=red><span
style='color:red;font-weight:bold'>(</span></font></b>gc<b><font color=red><span
style='color:red;font-weight:bold'>);</span></font></b><font color=red><span
style='color:red'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 color=red face="Courier New"><span style='font-size:8.0pt;font-family:
"Courier New";color:red;background:white;mso-highlight:white;mso-no-proof:yes'><o:p> </o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span><b><font color="#400080"><span style='color:#400080;
font-weight:bold'>// Set the viewport for the Camera</span></font></b><font
color="#400080"><span style='color:#400080'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span>_camera<b><font color=red><span style='color:red;font-weight:
bold'>-></span></font></b>setViewport<b><font color=red><span
style='color:red;font-weight:bold'>(</span></font><font color="#408080"><span
style='color:#408080'>new</span></font></b> osg<b><font color=red><span
style='color:red;font-weight:bold'>::</span></font></b>Viewport<b><font
color=red><span style='color:red;font-weight:bold'>(</span></font></b>traits<b><font
color=red><span style='color:red;font-weight:bold'>-></span></font></b>x<b><font
color=red><span style='color:red;font-weight:bold'>,</span></font></b> traits<b><font
color=red><span style='color:red;font-weight:bold'>-></span></font></b>y<b><font
color=red><span style='color:red;font-weight:bold'>,</span></font></b> traits<b><font
color=red><span style='color:red;font-weight:bold'>-></span></font></b>width<b><font
color=red><span style='color:red;font-weight:bold'>,</span></font></b> traits<b><font
color=red><span style='color:red;font-weight:bold'>-></span></font></b>height<b><font
color=red><span style='color:red;font-weight:bold'>));</span></font></b><font
color=red><span style='color:red'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 color=red face="Courier New"><span style='font-size:8.0pt;font-family:
"Courier New";color:red;background:white;mso-highlight:white;mso-no-proof:yes'><o:p> </o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span><b><font color="#400080"><span style='color:#400080;
font-weight:bold'>// Add the Camera to the Viewer</span></font></b><font
color="#400080"><span style='color:#400080'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span>mViewer<b><font color=red><span style='color:red;font-weight:
bold'>-></span></font></b>addSlave<b><font color=red><span style='color:
red;font-weight:bold'>(</span></font></b>_camera<b><font color=red><span
style='color:red;font-weight:bold'>.</span></font></b>get<b><font color=red><span
style='color:red;font-weight:bold'>());</span></font></b><font color=red><span
style='color:red'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 color=red face="Courier New"><span style='font-size:8.0pt;font-family:
"Courier New";color:red;background:white;mso-highlight:white;mso-no-proof:yes'><o:p> </o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span><b><font color="#400080"><span style='color:#400080;
font-weight:bold'>// Add the Camera Manipulator to the Viewer</span></font></b><font
color="#400080"><span style='color:#400080'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span><b><font color="#400080"><span style='color:#400080;
font-weight:bold'>//mViewer->setCameraManipulator(keyswitchManipulator.get());</span></font></b><font
color="#400080"><span style='color:#400080'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 color="#400080" face="Courier New"><span style='font-size:8.0pt;
font-family:"Courier New";color:#400080;background:white;mso-highlight:white;
mso-no-proof:yes'><o:p> </o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span><b><font color="#400080"><span style='color:#400080;
font-weight:bold'>// Set the Scene Data</span></font></b><font color="#400080"><span
style='color:#400080'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span>mViewer<b><font color=red><span style='color:red;font-weight:
bold'>-></span></font></b>setSceneData<b><font color=red><span
style='color:red;font-weight:bold'>(</span></font></b>mRoot<b><font color=red><span
style='color:red;font-weight:bold'>.</span></font></b>get<b><font color=red><span
style='color:red;font-weight:bold'>());</span></font></b><font color=red><span
style='color:red'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 color=red face="Courier New"><span style='font-size:8.0pt;font-family:
"Courier New";color:red;background:white;mso-highlight:white;mso-no-proof:yes'><o:p> </o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span><b><font color="#400080"><span style='color:#400080;
font-weight:bold'>// Realize the Viewer</span></font></b><font color="#400080"><span
style='color:#400080'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span><b><font color="#400080"><span style='color:#400080;
font-weight:bold'>//mViewer->getCamera()->setViewport(traits->x,
traits->y, traits->width, traits->height);</span></font></b><font
color="#400080"><span style='color:#400080'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 face="Courier New"><span style='font-size:8.0pt;font-family:"Courier New";
background:white;mso-highlight:white;mso-no-proof:yes'><span style='mso-tab-count:
1'>       </span>mViewer<b><font color=red><span style='color:red;font-weight:
bold'>-></span></font></b>realize<b><font color=red><span style='color:red;
font-weight:bold'>();</span></font></b><font color=red><span style='color:red'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal><strong><b><font size=4 face=Arial><span style='font-size:
13.5pt;font-family:Arial'><o:p> </o:p></span></font></b></strong></p>

<p class=MsoNormal><strong><b><font size=4 face=Arial><span style='font-size:
13.5pt;font-family:Arial;mso-no-proof:yes'>Thanks -Steve</span></font></b></strong><span
style='mso-no-proof:yes'> </span><o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt;mso-no-proof:yes'> </span><o:p></o:p></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

</body>

</html>