O.K.
It seems that I know the reason why.
We need to add the enviornemnt variable to the preprocessor definitions in the resource tab in project settins (and not only in the c/c++ tab, general in...
Hi,
I'm defining IDR_MAINFRAME and AFX_IDS_APP_TITLE in my .rc2 file depending enviornment variable. (its in .rc2 because in .rc file Microsoft does not accept #ifdef).
Hi,
Great to hear someone encountered the same problem.
Here is the answer:
#if defined _FIRST
IDR_MAINFRAME ICON DISCARDABLE "res\\icon_1.ico"
#elif defined _SECOND...
I've seen somewhere in MSDN the following: "... The Windows standard is to have only one version resource, named VS_VERSION_INFO...".
It seems to me that using...
Hi,
Using SDI is my favorite option.
In the main frame insert splitter window member. Then override OnCreateClient as follows:
m_vertical_splitter.CreateStatic(this, 1, 2);
...
Hi Sam,
thanks for your reply. I'll check this solution.
If you know of a good start point for version resource overview, it will make this thread a 5 star thread :-)
Hi Sam,
Thanks for your reply.
I'm dealing with a concept our company call (and maybe well-known as) private lebeling:
Our customers want to 'label' an application we do as their own. For example,...
The change should be at run-time. There is no meaning to .rc file at run-time.
Maybe MFC saves this string values at certain place that can be modified.
HI,
I would like to put a bitmap in my view. In the bitmap their are certain elements that I would like to behave as links. Those elements can have states, e.g enable(with colors) / disable...
Well,
There is no much to show.
The command update handler is:
void CMainFrame::OnUpdateObjectDelete(CCmdUI* pCmdUI)
{
pCmdUI->Enable( b_existing_object && b_removable_item );
}
Hi,
In my case the condition got changed but the handler doesn't get called after the change - so I would like to force him to get called.
It seems that call the handler directly (which CCmdUi to...