|
The classwizard has been radically modified for VS7/7.1. Most of the events and handlers can now be accessed via the properties controlbar.
see this
for more details.
I Dream of Absolute Zero
|
|
|
|
|
I want to use the colorful tree structure icon in my app. But its index is
84 in shell32.dll on win2k and 78 on win98. So what's the CSIDL for it?
Sing when we're programming.
|
|
|
|
|
In the Dialog view window the tool window with the button and Edit boxes etc.
I closed it and now I cannot get it back even if I start a new project
Im using Visual Studio 6 VC++
Donald
|
|
|
|
|
Here IS Solution Buddy,
open your Project,then go to resource view and then right click on Menubar and select Controls option , your tool will be back
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
I'm trying to use the windiff feature to compare two source code files. I'm not sure where this gets invoked though.
If I just enter it in a Windows command window I get "windiff is not recognized as an internal or external command, operable program, or batch file".
If I bring up a command window in Visual Studio via the View->Other Windows->Command Window menu option and then type windiff in there I get "Command windiff is not valid"
If I run the MSDN Library program and try to find a command window there to invoke windiff, I can't seem to find any way to bring up a command window.
What am I missing here?
Robert
|
|
|
|
|
I gave up on windiff. We swapped to Winmerge on my last project, it's is a hell of a lot simpler to use and to get started with, plus the interface makes much more sense. [Edit: Fixed Link]
Winmerge on Sourceforge
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts your aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
Hello all.
How can I retrive the name of all files that are in a specified directory?
If the soulition could be done with standard C/C++, it would be better than using Windows API or other. But any idea will help.
Thanks a lot.
Kith.
"...and Kith Kahnan went to the west, where he founded the city of Qualinost and named the country Qualinesty: The Freedom Land". Kynslayer Wars, by Astinus of Palanthas.
|
|
|
|
|
Under windows you can use the FindFirstFile and FindNext functions to do this. If you need a platform independant system you might want to look at boost::filesystem.
MSDN Example
boost::filesystem
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts your aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
Hi,
I have an MFC SDI application and in the view I have a CListCtrl.
Based on the size of the list, I need to enable/ disable some menu options. For example, if the list has no elements, then the option in Edit> Remove should be disabled. How do I do that?
I don't seem to have handles to the menu items I want to disable in <application>View.cpp.
Thanks in advance.
Help wanted!
|
|
|
|
|
Handle the event ON_UPDATE_COMMAND_UI and pCmdUI->Enable(false);
|
|
|
|
|
Is there an example of simple notepad program? Nothing fancy. I just need example on how to do File -> New, how to display opened file on screen, and how to take what's type on the screen save into text file. Without using Dialog.
|
|
|
|
|
MSDN come with that sample. Look at the sample folder
|
|
|
|
|
Where? Using Visual Studio 6.0 here. If you are talking about .net 2002 version I downloaded that one but it's wordpad style and too complex. I need something very simple
|
|
|
|
|
If you are using VS6.0, it is very simple to have a text editor. Just create a project by wizard and choose CEditView as base class for view. Is that you needed?
|
|
|
|
|
But in that, File -> New doesn't work, File -> Open doesn't open the text file, and File -> Save doesn't save the content.
|
|
|
|
|
Hi,
I'm having troubles processing my user messages so I think I'm leaving some code line.
I do this:
#define WM_ICON_NOTIFY WM_APP+10
...
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,LPSTR lpCmdLine, int nCmdShow)
{
...
while (GetMessage(&msg, NULL, 0, 0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
...
}
...
inicialize the structure NOTIFYICONDATA:
...
icon.uCallbackMessage = WM_ICON_NOTIFY;
...
and process the messages:
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
...
switch (message)
{
case WM_ICON_NOTIFY:
my action
.....
but anything I do in case WM_ICON_NOTIFY there's not response, so I'm sure the program doesn't receive the messages when click a mouse button over the icon, for example.
What i'm doing wrong?
Thanks!
|
|
|
|
|
lillah wrote:
#define WM_ICON_NOTIFY WM_APP+10
instead of using WM_APP use WM_USER
and try sending Dummy message to your application,to se wheather you are receiving message or not using
PostMessage or SendMessage Apis
Really these apis are very Easy and Whole window system depend on it,REALLY
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
I've tried with PostMessage and SendMessage and nothing, app doesn't receive anything.
With WM_APP or WM_USERS occurs the same.
One question, in Project Settings i'm using MFC in a static library because with Not MFC I have problems to linking:
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
If I use MFC in a static library i have to do a MESSAGE_MAP? Will it be this the problem?
I haven't an own class so i don't know how to do a message map.
--Modify-- I've modified the program to NOT use MFC ant continues the trouble
|
|
|
|
|
I got it!!!!!!
I've created another invisible window that it will be POPUP for the icon, so the app message from the taskbar are processed well.
Ufffff.
ThatsAlok, thank you very much for your help in all my threads, you help me a lot, I'm newbie and i'm lose easily
Thanks
|
|
|
|
|
Thanks
You are always Welcome Sir.
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
I have a UI basically consisting of a CWnd (the Bad Window)as a child of a CTabCtrl as a child of a CWnd ( a placeholder ) inside a docking window.
When creating the hierarchy, every UI window is created and resized properly up to The Bad Window; upon Spy++ing it, I find that its size and position is (0,0,0,0)
I suspect that at one level, when I do a MoveWindow on a UI, it does not propagate the WM_SIZE because the size is the same.
I have something like in an OnSize Handler:
CRect rect;
GetClientRect( rect );
rect.DeflateRect( 2, 2, 2, 2 );
m_pController->MoveWindow( rect );
I suspect the size of m_pController is the same as rect and does not trigger a WM_SIZE.
When I manually resize the docking window, all is fixed and resized nicelly.
Is there a way to force a WM_SIZE to be triggered ? or maybe I'm missing some obvious thing ?
Can SetWindowPos be used to help fix the problem ? ( I will try that ... )
Thanks.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
Hi,
I want to change the dialog box size so that it fits my computer screen without having any horizontal or vertocal scroll bars. Is it possible to do this by changing the property of the dialog box. Its just the one time change the user is not going to alter its size.
please help me out. I read a few articles where i need to include new class. can anyone please help me on this
|
|
|
|
|
Use GetSystemMetrics() to get the current resolution. Then use SetWindowPos() or MoveWindow() to change the size.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
1. i have a menu option. when i choose option A, a child window appears with about 25 controls on it, The child window takes the default dialog window size. I am keen on increasing teh size of this child window coudl you please help me on how i can do this.?
|
|
|
|
|
Araj01 wrote:
I am keen on increasing teh size of this child window coudl you please help me on how i can do this.?
If you want to set the size of the dialog, do so by calling SetWindowPos() or MoveWindow() in the dialog's OnInitDialog() method.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|