|
Can anyone give a list of all WNDPROC WM_* messages I can receive from a window
Thanks already
LPCSTR Dutch = "Double Dutch "
|
|
|
|
|
Sure thing. Do you have five reams of paper ?
Get Visual Assist from www.wholetomato.com, type in WM_ and hit ALT-space - you'll get a list.
|
|
|
|
|
An easy way to see them all is to bring up the help (included with VC or the Platform SDK), go to the index, and type "WM_" and notice all the messages in the list. There is no single list of all the messages. They seem to broken out into different "sections", keyboard, mouse, etc.
Joel Lucsy (jjlucsy@ameritech.net)
|
|
|
|
|
Run the Spy++ application that ships with VC++. When it starts, select the Log Messages menu item, drag and drop the Finder Tool icon onto a window and then click the Messages tab. At that point, you will see the roughly 1000+ messages you can capture. You can also filter these messages (via type) so that you can spy on specific messages types (e.g., keyboard, mouse, afx/mfc, edit control, etc.)
Cheers,
Tom Archer
Author, Inside C#
A total abstainer is one who abstains from everything but abstention, and especially from inactivity in the affairs of others.
|
|
|
|
|
Hello Guru,
http://www.codeguru.com/doc_view/DialogSwitcher.html
is good article.
Could you please help me?
How to build Tree View in Custom control using Win 32 sdk programming (
Purely, C-programming).
I want to have Custom control based Dailog box winow in main project.
And Tree view building routine library, would like place in another project,
which build as DLL and called by above custom control main project.
So, from Main project, I would like to pass the Custom control reference to
the Tree view DLL libriry calls.
And posted messages in details, also. At least above is enough to go ahead.
http://www.codeguru.com/cgi-bin/bbs/wt/showpost.pl?Board=vc&Number=368246&page=0&view=collapsed&sb=5
http://www.codeguru.com/cgi-bin/bbs/wt/showpost.pl?Board=vc&Number=366109&page=0&view=collapsed&sb=5
Kindly, please help me in this regard.
Thanks in advance.
~ SubbaReddy M
|
|
|
|
|
Hi,
Is it possible to do a server with WinInet under Visual c++ ??
IF yes can you tell me where can i find an example or a tutorial ?
If not what is the best solution to implement a good server ? is there only the Winsock Solution ??
Thanks in advance
|
|
|
|
|
|
See this article.
/ravi
"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Hmmm, interesting...
Why do people use MFC for server applications, and why go through all the trouble of creating/debugging a thread-pool when we have IO Completion Ports... (Yea, I know they only works under NT)
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
I have the following struct:
typedef struct IPHWNDTAB
{
HWND hWnd;
char IP[30];
}IPHANDLE;
typedef IPHANDLE FAR IpHandle[5];
I want to use the var "IpHandle" in different files in my visual c++ project. some of the files are *.c files that create a dll and some are *.cpp files which are com interface files.
what is the best way to implement this so that I can use this "IpHandle" from different files in my project?
thanks,
Aviv.
avivhal
|
|
|
|
|
Declare it as extern in stdafx.h, and declare it in stdafx.h.
|
|
|
|
|
You can either declare it globally as the first posted proposed or you can make it a public member variable of the application class.
Cheers,
Tom Archer
Author, Inside C#
A total abstainer is one who abstains from everything but abstention, and especially from inactivity in the affairs of others.
|
|
|
|
|
hello,
im speaking about sample project of carlos Jimenez de parga
i have a few simple questions and i will be glad if you can answer me,
1. i have win98.i assume i have directX in it.how can i be sure?
2. i tried to use your midiMusic files, in a win32 console application project , i put StdAfx files, and in "dmusic.h"
there are those includes:
#include <dmusicc.h>
#include <dmusici.h>
#include <dmksctrl.h>
although i linked the dxguid.lib, my compiler doesnt recognize them. why?should i download something?
im a total begginer, actually i try to write a simple c++ application that runs midi files.
thank you very much, Rachel.l.
|
|
|
|
|
Hi,
I'm (attempting) to make a MFC Dialog based application.
In my application I have a dialog box that calls another dialog box. Each have there own class "CDialog1" and "CDialog2". When Dialog1.cpp wants to call CDialog2 I created a private variable of CDialog2 called m_dDialog2 (in CDialog1) and in Dialog1.cpp it calls it using m_dDialog2.DoModal(). This was all working fine but now when I compile I get the following errors:
c:\proj\interf\dialog1.h(18) : error C2146: syntax error : missing ';' before identifier 'm_dDialog2'
c:\proj\interf\dialog1.h(18) : error C2501: 'CDialog2' : missing storage-class or type specifiers
c:\proj\interf\dialog1.h(18) : error C2501: 'm_dDialog2' : missing storage-class or type specifiers
I didn't make any changes myself to any of the code in dialog1.h
But the strange this is that sometimes (not all the time) when I delete the variable and add it again using "Add Member Variable" it compiles and runs fine. Then after running it I compile it again (without making changes) and the three errors return.
I'm getting really frustrated so any comments would be really welcome.
Thanks,
Aoife
|
|
|
|
|
Aoife wrote:
c:\proj\interf\dialog1.h(18) : error C2146: syntax error : missing ';' before identifier 'm_dDialog2'
#include "Dialog2.h" inside the dialog1.h file.
Maxwell Chen
No code is good code.
|
|
|
|
|
It was already there, but when I deleated #include "Dialog2.h" and added the variable again that worked.
Thanks,
Aoife
|
|
|
|
|
Hi all,
I am not quite familiar with ATL, and I am now develepoing a MFC project on VC 7.0.
I want to load an bitmap from a resource and set its transparent color and then pass the HBITMAP to another function that I am using.
So I did like this:
CImage a;
a.LoadFromResource (AfxGetInstanceHandle (), IDB_OK);
a.SetTransparentColor (RGB (192, 192, 192));
My program asserts on SetTransparentColor on the following line:
ATLASSERT( (m_nBPP == 4) || (m_nBPP == 8) );
and m_nBPP reprezents Bits Per Pixel. The problem is that my Bitmap is 24bpp.
Can anyone provide any help? Has anyone used this before?
Thanks
Best regards,
Alexandru Savescu
|
|
|
|
|
I'm loading some temporary files into an MDI app. They appear on the 'Most Recent Files' list. As they are temporary and the user will not want to select them I need to delete them from the MRU list, anyone know how?
Cheers,
ali p
|
|
|
|
|
You need to look at the CDocument::SetPathName() function for you document class. The default implementaion automatically adds the filename to the recent file list by one of the parameters that are passed to it when it is called. Find out where, and pass in a new value when its a temporary file to stop it being added to the file list.
Roger Allen
Sonork 100.10016
If I had a quote, it would be a very good one.
|
|
|
|
|
That's great, thanks for the help.
My MRU looks fab now!!!!
ali p
|
|
|
|
|
I removed VS.NET beta from my machine, but it left behind a beta version of IE6 which is preventing the installation of IE6 final version. There's no entry in Add/Remove Programs for it, so I can't uninstall the damn thing. Any solutions?
|
|
|
|
|
The documentation for VS.NET beta has always stated that you'll need to format your machine when uninstalling VS or installing a new version.
Cheers,
Tom Archer
Author, Inside C#
Author, Visual C++.NET Bible
A total abstainer is one who abstains from everything but abstention, and especially from inactivity in the af
|
|
|
|
|
How can I copy a visual c++ project from one machine to another?
I've tried to copy all the files in the project's root and the res directory, not copying the debug and release directories. That gives about 300 kb.
But when I open the project on the other machine, there are several things that are not working anymore.
For example, the inline autocomplete (when you press . or -> a choicebox appear with the member functions) doesn't work for mfc classes (but for own classes it works fine).
Is there a standard procedure for copying projects?
[VISUAL STUDIO 6.0] [MFC] [WIN98/2]
Bluute tette!
|
|
|
|
|
Myself, I backup each of my projects each day. Those Visual C++ projects each contains about 270 .cpp and .h files individually. The biggest one is 4.82 mega-bytes, no Debug and no Release folders, just some .cpp, .h, and .ico files only (total 350 files include .ico ). The 2nd biggest one is 4.49 mb, 257 cpp + h files (total 326 files, include .ico ).
Each day I just use the Explorer.exe to perform File Copy and Paste, zip it, and delete the backup file which is 3 days ago.....
When I am going to copy, I always delete .aps, .ncb, .opt, .plg, Debug and Release folders, etc. And after copied to another PC, the project works fine...
Maxwell Chen
No code is good code.
|
|
|
|
|
So, all you have to copy from the project's root are these: *.cpp, *.h, *.clw, *.dsp, *.dsw and *.rc.
Is that correct?
And the autocomplete still works fine?
Thx, gonna try this later on...
[VISUAL STUDIO 6.0] [MFC] [WIN98/2]
Bluute tette!
|
|
|
|