<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Manually inserting a button in .rc file  for sdk in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/manually-inserting-a-button-in-rc-file-for-sdk/m-p/6006191#M14827</link>
    <description>I've actually used vs2015 to do the resource editing and then copied the code back to vs2012. It works.</description>
    <pubDate>Tue, 26 Jan 2016 08:09:41 GMT</pubDate>
    <dc:creator>giuseppetonello</dc:creator>
    <dc:date>2016-01-26T08:09:41Z</dc:date>
    <item>
      <title>Manually inserting a button in .rc file  for sdk</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/manually-inserting-a-button-in-rc-file-for-sdk/m-p/6000885#M14823</link>
      <description>&lt;P&gt;In Visual Studio 2012 Express there's no possibility of editing visually the .rc file.&lt;/P&gt;&lt;P&gt;I'm just trying to add a button to the utility wizard.&lt;/P&gt;&lt;P&gt;I think I have to add something to the lines of the dialog in the .rc file, other than that I have no clue on how to do it.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2016 08:29:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/manually-inserting-a-button-in-rc-file-for-sdk/m-p/6000885#M14823</guid>
      <dc:creator>giuseppetonello</dc:creator>
      <dc:date>2016-01-22T08:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Manually inserting a button in .rc file  for sdk</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/manually-inserting-a-button-in-rc-file-for-sdk/m-p/6002879#M14824</link>
      <description>&lt;P&gt;check resedit.net&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2016 18:51:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/manually-inserting-a-button-in-rc-file-for-sdk/m-p/6002879#M14824</guid>
      <dc:creator>istan</dc:creator>
      <dc:date>2016-01-23T18:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Manually inserting a button in .rc file  for sdk</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/manually-inserting-a-button-in-rc-file-for-sdk/m-p/6004383#M14825</link>
      <description>So, I've tried to draw in another resource editor&lt;BR /&gt;and what I've got is a line like that&lt;BR /&gt;PUSHBUTTON "Button1",IDC_BUTTON1,19,42,68,17&lt;BR /&gt;&lt;BR /&gt;Then, in the resource.h file, I've added&lt;BR /&gt;#define IDC_BUTTON1 1003&lt;BR /&gt;(no idead how that 1003 ID is generated)&lt;BR /&gt;&lt;BR /&gt;At this point I was expecting the button to appear. Instead, it compiles fine, but no button is showed.</description>
      <pubDate>Mon, 25 Jan 2016 12:56:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/manually-inserting-a-button-in-rc-file-for-sdk/m-p/6004383#M14825</guid>
      <dc:creator>giuseppetonello</dc:creator>
      <dc:date>2016-01-25T12:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Manually inserting a button in .rc file  for sdk</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/manually-inserting-a-button-in-rc-file-for-sdk/m-p/6004611#M14826</link>
      <description>&lt;P&gt;Hi Joey,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, it's easier to use a resource&amp;nbsp;editor for the layout, etc. however, make sure you are using one that shows the entire panel. The button positions need to be relative to the panel so that the button is positioned correctly. You can review&amp;nbsp;the .rc file in the code editor to see if the position and size values are relative to the panel itself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, make sure that the resource ID and it's name does not conflict with another control. Those integer values are generated by the resource editor (in VS anyway), and it will ensure no duplicates. However, when manually editing files, you need to make sure the ID is not duplicated. If it is the same as another resource value, then just bump it up and rebuild-all. If the IDC_BUTTON1 name is also duplicated,&amp;nbsp;you probably will get a&amp;nbsp;compiler error, but just to point out it should also be unique.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might also review the samples in the SDK and copy those definitions into your project if you want to work manually with the code in the .RC/resource.h. In some cases (ie. a spinner/edit combo) you should copy an existing one anyway, as they are considered "custom" controls.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that I also read recently that Microsoft now has a free "Community" edition. it was not clear for me if this replaces the "Express" version, but it says it includes the resource editor now. It is probably based on VS2015 (and using VC++ 14), so it cannot be directly used with 3ds Max requiring VS 2012 (VC++ 11). However, you might be able to use the newer VS IDE (and resource editor) in a side-by-side install. You will need to use the "toolset" option in the project settings to ensure it is compiling against VC++11 toolset and compiler (I am not sure if this idea is supported in the free versions, but might be something to checkout).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps,&lt;/P&gt;
&lt;P&gt;kevin&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2016 14:44:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/manually-inserting-a-button-in-rc-file-for-sdk/m-p/6004611#M14826</guid>
      <dc:creator>kevinvandecar</dc:creator>
      <dc:date>2016-01-25T14:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Manually inserting a button in .rc file  for sdk</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/manually-inserting-a-button-in-rc-file-for-sdk/m-p/6006191#M14827</link>
      <description>I've actually used vs2015 to do the resource editing and then copied the code back to vs2012. It works.</description>
      <pubDate>Tue, 26 Jan 2016 08:09:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/manually-inserting-a-button-in-rc-file-for-sdk/m-p/6006191#M14827</guid>
      <dc:creator>giuseppetonello</dc:creator>
      <dc:date>2016-01-26T08:09:41Z</dc:date>
    </item>
  </channel>
</rss>

