Hi eveyone,
Need assistance for hiding the model\layout from code.My code is updating the registery properly.but it is not reflecting/hiding the model/layout tabs in application.Please provide some suggestion to hide/trunoff from code.Model/layout is not required for my application.Is there any command to hide model/layout tab.So i am thankful to you.
void CMyApp::TurnoffModelViewLayoutTAB()
{
//TurnOff Model View Tab
CRegKey myKey;
DWORD dwConversion;
dwConversion = 1;
CString csKeyName="SOFTWARE\\Autodesk\\AutoCAD\\R19.1\\ACAD-D002:409\\Profiles\\<<Unnamed Profile>>\\Drawing Window\\";
if(myKey.Open(HKEY_LOCAL_MACHINE, (char*)LPCTSTR(csKeyName), KEY_ALL_ACCESS) == ERROR_SUCCESS)
{
setRegistryDWORD(myKey, ("ShowTabs"), dwConversion);
myKey.Close();
}
}
Regards,
GISAutoCAD 2014 Migration Team.
Use acedSetEnv, e.g. from LISP
(setenv "ShowTabs" "0")
or
(setenv "ShowTabs" "1")
See this for full history!:
Abbas