|
writing is much easier than reading because you can always stick to a known subset of features. reading requires that you handle any number of features (none of which are documented, in the case of .Doc files)
-c
There ain't no second chance
Against the thing with the forty eyes
|
|
|
|
|
If i write a program in UNMANAGED VC++ 7.0 using ATL 7.0 and\or MFC 7.0, do I have to install the .Net framework or can I just supply the required ATL\MFC DLL's to the users machine?
Is installing the framework just for Microsoft's CLR?
|
|
|
|
|
You only need the framework for Managed C++ and for VB.NET and C#. Your ATL and MFC code will run without the framework, you'll just need to distribute the new DLLs.
Michael
Communication is the first step towards enlightenment.
|
|
|
|
|
My Shortcut Keys are not shown on the main menu. I've put in the '&' before the relevant letter, but the letter is not underlined.
If I use the shortcut it does work, and strangely if there is a sub menu (like 'Alt+F' for File) then the shortcuts do appear on that and the main menu until I go back to just the 'normal' main menu, then the shortcuts have gone again.
I'm sure its something stupid I have done, but I cannot think what.
Any ideas?
ali p
|
|
|
|
|
ali p wrote:
Any ideas?
Did you check your menu or resource file for SS_NOPREFIX? *wild guess*
|
|
|
|
|
Keep ALT key pressed and you'll see the underlined short cuts
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
Thats it, what a complete idiot I am!
Thanks Nish
ali p
|
|
|
|
|
You'd be amazed how many people didn't know this. I have a whole host of bug reports from testers saying that the shortcut keys weren't working right.
Michael
Communication is the first step towards enlightenment.
|
|
|
|
|
Adding to Nish's response, this is a particular annoying new feature of XP.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Joaquín M López Muñoz wrote:
this is a particular annoying new feature of XP
You can disable it using XP powertoys I think
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
this is a particular annoying new feature of XP.
It's nothing new to NT5.1, it's been there since NT5.
|
|
|
|
|
|
Michael Dunn wrote:
There is a setting under Display->Effects that turns underlining and other keyboard indicators off and on.
And here I was thinking I need Powertoys to do that.
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
Hi there,
I recently run into big trouble while mixing ON_MESSAGE and ON_COMMAND handler (nasty assert in Win32-release, but not in Win32-debug). VC didn't complain, eeeks, I'm really glad I found it after hours...
Now I'm confused. May I ask two questions:
1. What is the difference between COMMANDS and "normal" window messages (okay WM_COMMAND is an own message), what is this concept though for?
2. I'm using context menus (sending COMMANDS), plus I'm using build-in hotkeys (now sending normal messages with SendMessage()). How should I combine both, should I send WM_COMMANDS from my OnKeyDown() method?
Thx 4 pointing me into right direction again!
|
|
|
|
|
i use createview(), which is memeber function of Class CMainFrame, to create a record-view based on a dialog in a Command-message handler. code as follows:
void CMainFrame::OnViewConfdef()
{
CView *t_pCurrentActiveView = GetActiveView();
CCreateContext *t_pCretContext = new CCreateContext;
t_pCretContext->m_pCurrentDoc = GetActiveDocument();
t_pCretContext->m_pCurrentFrame = this;
CRuntimeClass *t_pRunTC = RUNTIME_CLASS(CHuiYiDefView);
t_pCretContext->m_pNewViewClass = t_pRunTC;
t_pCretContext->m_pLastView = t_pCurrentActiveView;
CView *t_pView = (CHuiYiDefView*)CreateView(t_pCretContext);
if(!t_pView)
{
AfxMessageBox("error!");
exit(1);
}
t_pView->ShowWindow(SW_SHOW);
t_pView->OnInitialUpdate();
SetActiveView(t_pView);
RecalcLayout();
delete t_pCurrentActiveView;
}
The class CHuiYiDefView is derived from the class CRecordView. And the class CHuiYiDefView is linked with a dialog recource.
The following code "enum { IDD = IDD_CONF_DLG }" is added by AppWizard.
I face a problem that the pointer t_pView returned by createview() equals to NULL after I place the controls, Microsoft Ado Data Control and Microsoft DataGrid control, onto the dialog.
All codes i write pass the compile and have no errors. But I cant create the view correctly.
|
|
|
|
|
How Do I send a window message to another window that I have no source or control over to maximize?
Here is what I have so far.
In PretranslateMessage I
catch the F10 key and
BOOL CTestCapTabDlg::PreTranslateMessage(MSG* pMsg)
{
BOOL bMsgHandled = FALSE;
switch (pMsg->message)
{
case WM_KEYDOWN:
{
switch (pMsg->wParam)
{
case VK_F10:
// It is easy to substitute another key here but should I use SendMessage(WM_MAXIMIZE,...) to send through the pump? break;
Best Wishes,
Baldwin
|
|
|
|
|
You need to capture the respective window handle (HWND) so that you can use the ::SendMessage API to send the WM_MAXIMIZE. You can use the EnumWindows to do that... enumarate the windows, discover which one you need, get its handle and send the message.
Mauricio Ritter - Brazil
Sonorking now: 100.13560 Trank
I've gone sending to outer space, to find another race
|
|
|
|
|
Yes, I know but I don't always know the name of the application or the contents of the titlebar. I just want to send a message to maximize all open windows.
Thank you,
Best Wishes,
Baldwin
|
|
|
|
|
Hi,
I've installed InstallShield for VC++ 6
I've made a setup program, but how to
remove an icon when Uninstall runs..
I've created an icon using AddFolderIcon,
but how do i remove, when user presses uninstall.
Please help
Sameer
|
|
|
|
|
Icons created by AddFolderIcon are automatically logged for uninstallation (I' ve done it in the past and the icons actually went away on uninstallation.) Is this not working for you?
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Thanx.. Ya i tested that.. Its working now..
Thanx a lot
Sameer
Joaquín M López Muñoz wrote:
Icons created by AddFolderIcon are automatically logged for uninstallation
|
|
|
|
|
I want to create a simple G/L program (General Ledger) that can be readily distributed to clients who have no DB applications installed. Where do I begin? I know Access fairly well, and can find my way around a SQL Server system, but my target audience most likely will have neither. I've got MSDE and MDAC, but I don't understand the difference, and a couple of hours browsing through the MSDN documentation hasn't made me one bit smarter. Could someone kindly point me in a sensible direction?
|
|
|
|
|
MSDE is a cut down version of SQL Server. It is a database in its own right where MDAC is the DLL's and files needed to talk to the various databases.
You'll probably need to install MDAC onto your clients machines. If you want to use MSDE as your database you'll need to install that too. MSDE is a nice database system, much better than Access.
Michael
Communication is the first step towards enlightenment.
|
|
|
|
|
Thanks for clarifying, Michael! I've got a clearer idea of how to start
|
|
|
|
|
can anyone give me an example of how to use the hidecaret() funtion in a simple text program?
thx,
-ryan
|
|
|
|