<?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[Dialog size]]></title><description><![CDATA[<p dir="auto"><em>On 28/08/2018 at 01:33, <strong>xxxxxxxx</strong> wrote:</em></p>
<p dir="auto">User Information:<br />
Cinema 4D Version:   R18 <br />
Platform:   Windows  ;   <br />
Language(s) :     C++  ;</p>
<p dir="auto">---------<br />
Hello.</p>
<p dir="auto">I have a resizable dialog and I need to know its width and height. <br />
Is there a way to do it in Message method listening to BFM_SIZED ?<br />
In general, how else can I know its size ?</p>
<p dir="auto">Thank you.<br />
Petros.</p>
]]></description><link>http://developers.maxon.net/forum//topic/10937/14397_dialog-size</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Mar 2026 13:03:10 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum//topic/10937.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 01 Sep 2018 10:59:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Dialog size on Sat, 01 Sep 2018 10:59:40 GMT]]></title><description><![CDATA[<p dir="auto"><em>On 30/08/2018 at 09:05, <strong>xxxxxxxx</strong> wrote:</em></p>
<p dir="auto">Hi Peterakos,</p>
<p dir="auto">Sorry for the delay, even if it's marked as private you can use BFM_ADJUSTSIZE as bellow to know the current size of the windows.</p>
<pre><code>Int32 YourGeDialog::Message(const BaseContainer&amp; msg, BaseContainer&amp; result)
{
	switch (msg.GetId())
	{
		case BFM_ADJUSTSIZE:
			{
				Int32 w = msg.GetInt32(BFM_ADJUSTSIZE_WIDTH);
				Int32 h = msg.GetInt32(BFM_ADJUSTSIZE_HEIGHT);
				break;
			}
	}
	return GeDialog::Message(msg, result);
}
</code></pre>
<p dir="auto">If you have any questions, please let me know.<br />
Cheers,<br />
Maxime!</p>
]]></description><link>http://developers.maxon.net/forum//post/55513</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/55513</guid><dc:creator><![CDATA[Helper]]></dc:creator><pubDate>Sat, 01 Sep 2018 10:59:40 GMT</pubDate></item><item><title><![CDATA[Reply to Dialog size on Sat, 01 Sep 2018 10:59:37 GMT]]></title><description><![CDATA[<p dir="auto"><em>On 29/08/2018 at 04:48, <strong>xxxxxxxx</strong> wrote:</em></p>
<p dir="auto">Hello.</p>
<p dir="auto">GetItemDim() works fine ! It returns the size of the requested ID.<br />
There is another problem though if used in Message listening to BFM_SIZED.<br />
If I double click the Dialog's Title bar causing the dialog to be maximized, it returns the previous width (not the maximized one).<br />
So it appears that BFM_SIZED is not the right message to use in order to retrieve the correct Param width. I need the size <strong>after</strong> the resizing.</p>
<p dir="auto">Thank you.</p>
]]></description><link>http://developers.maxon.net/forum//post/55512</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/55512</guid><dc:creator><![CDATA[Helper]]></dc:creator><pubDate>Sat, 01 Sep 2018 10:59:37 GMT</pubDate></item><item><title><![CDATA[Reply to Dialog size on Sat, 01 Sep 2018 10:59:34 GMT]]></title><description><![CDATA[<p dir="auto"><em>On 29/08/2018 at 00:44, <strong>xxxxxxxx</strong> wrote:</em></p>
<p dir="auto">Hi Petros,</p>
<p dir="auto">maybe take a look at the GetItemDim() function. You could call it on your parent dialog group - might get what you're after?</p>
<p dir="auto">WP.</p>
]]></description><link>http://developers.maxon.net/forum//post/55511</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/55511</guid><dc:creator><![CDATA[Helper]]></dc:creator><pubDate>Sat, 01 Sep 2018 10:59:34 GMT</pubDate></item></channel></rss>