|
The sample mentioned doesn't receive messages for the root menu's either. There must be some way to receive DrawItem and MeasureItem messages for the root menus - isn't there?
--russell
|
|
|
|
|
I have a workspace that consists of an MDI project as one project and another GUI project that is used in the MDI project as its GUI elements.
However, anytime I want to trace a problem in the GUI project from the MDI project, I get the "Some breakpoints can not be reached error".
Since I need to launch the MDI project and input paramters first before launching the the Dialogs in the GUI project, I am not sure what to do?
How would you debug something like this?
|
|
|
|
|
Put them in the projects in the same workspace set all the breakpoints and start debugging. some of the breakpoints will get disabled but you will probably get stopped at one of your breakpoints in your MDI or at the beginning of the MDI application and you can then renable the breakpoints in the other GUI project in the workspace via the breakpoints dialog (Ctrl-B).
Cheers,
-Erik
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My thoughts are my own and reflect on no other.
|
|
|
|
|
What is meant by the term 'regular expression'. I see it alot but I'm not clear as to what it means. Thanks,
Josh
josh@that-guy.net
|
|
|
|
|
first result in a Google search:
A regular expression is a way for a computer user to express how a computer program should look for a specified pattern in text. The user of a regular expression can then tell the program what it is to do when matching patterns are found - for example, print out each line in which a match is found or substitute another text sequence where any match occurs.
....
best known tool is grep used in UNIX systems and also offered as a separate utility program for Windows and other operating systems.
------------------------------
Smaller Animals Software, Inc.
http://www.smalleranimals.com
|
|
|
|
|
This site explains it pretty well...
http://sitescooper.org/tao_regexps.html
Steve T.
|
|
|
|
|
|
Hi
I want to add a button to the IE-toolbar.
I read the article on MSDN:
http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/ext/tutorials/button.asp
The creation of the necessary registry-keys is no problem, but there are mentioned
to COM-function:
IOleCommandTarget
and
IObjectWithSite
Unfortunately I have ABSOLUTELY NO IDEA what to do with them, the help didn't take me any further.
Could you explain me or give me some URL on how to use it?
regards
|
|
|
|
|
To add a button to IE you don't have to do any com programming. If you want the button to do something, you can write script, write a exe to execute, or develop a IE addin like a toolbar or an explorer bar. If you're looking to do the later, read my latest tutorial in the ATL section.
Cheers,
-Erik
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My thoughts are my own and reflect on no other.
|
|
|
|
|
What I want to do is as follows:
When the user clicks on the button a popup-menu should appear.
When the user clicks on a menu-item some text should be inserted into the control of the current html-site, which has the focus.
How can I start?
The button is created already
|
|
|
|
|
Hi Gurus
I'm using LVS_EX_GRIDLINES in my CListView derived class ...
The grid lines appear in gray, and I would like to have them in black...
Any Idea ?
Thank's
Hello chérie, was it written in the stars, that we were supposed to fraternize ( Pepé Le Pew )
|
|
|
|
|
I have a tree, and I want to be able to dynamically change the color of an individual tree items' text. If anybody can help, I would appreciate it.
|
|
|
|
|
You can do that quite simply with custom draw. Look up "NM_CUSTOMDRAW (tree view)" in MSDN.
--Mike--
http://home.inreach.com/mdunn/
Ford: How would you react if I said that I'm not from Guildford after all, but from a small planet somewhere in the vicinity of Betelguese?
Arthur: I don't know. Why, do you think it's the sort of thing you're likely to say?
|
|
|
|
|
Hi!
I'm writing an app that tries to capture OutputDebugString()
messages from another app I've written. I propery get
DEBUG_EVENTs from the other app and I make sure that I work
with OUTPUT_DEBUG_STRING_EVENTs, but when I try to get the
string data by calling ReadProcessMemory(), I get nothing
but garbage.
I've got a proper handle to the process, the pointer to the
string data provided by the DEBUG_EVENT and a pointer to
an appropriately sized data buffer to dump the data in, but
like I said, I get nothing but garbage. I have no idea what
to do. Does anybody have any idea?
Steve The Plant
|
|
|
|
|
Hi there,
I have an application that has upwards of 20 classes and a lot of these
classes need to use a method in one another to get the whole thing going.
I was wondering whether the following practice of mine is considering
bad programming/design habit and there is a better way of doing it:
I tend to include header files of any class i need in any given file
and then, call the member functions of the class as following:
CClass2 x2;
x2.print();
I was wondering if I do this too many times, whether it would cause
a problem somewhere in the code or is this an acceptable practice?
|
|
|
|
|
Without knowing what the default CClass2 constructor does, your question cannot be answered. Generally speaking, there is no harm in declaring a class as a local variable. In fact, IMHO, that is the sort of design you should generally strive for. However, if your default ctor is doing a lot of work initializing the class you might rather have it as a member of the class so that it is only initialized once.
class myclass
{
private:
CClass2 m_x2;
};
void myclass::somemethod()
{
m_x2.print();
}
"Want to know what makes me mad? Everything!" The Ranting Swede.
|
|
|
|
|
Hi,
I've created a button dynamically but I only know how to respond to the button by assigning a handler using the wizard, but how do I go about it now?!
/Tommy
|
|
|
|
|
WM_COMMAND will recieve a BN_CLICKED message which includes the ID of the button and so on. I've been doing it in Win32, but I'm sure you can override WM_COMMAND in MFC, or otherwise do it through PreTranslateMessage otherwise ( the last resort ;0)
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
I dont know what help i'm asking for.I know how to do the first few part of my project but not so sure about the rest.I just need someone to take a look at my project questions.I will email those who wants it.Thanks alot.
|
|
|
|
|
I could be wrong, but I think you would have better luck posting your questions here rather than expecting someone to become your personal free tutor.
"Want to know what makes me mad? Everything!" The Ranting Swede.
|
|
|
|
|
Fair dinkum - how often are you going to keep posting this non-question instead of asking what it is you want to know ? I would hope no-one here would do your homework for you, but everyone would be happy to help if you ask some specific questions about where you are stuck or what you do not understand. Post the damn questions, and I know I will not be alone in being glad to comment. But you should also post your attempts at answers - no-one is going to do your homework for you, and if they did they would be doing you a grave injustice.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
There is an article located here:
http://www.codeproject.com/listctrl/headerctrlex.asp
It explains how to create a multiline header control. I
tried implementing this article for a CFormView, but I
can't get it to work. Too many errors. Can someone
show me how to implement this article for a CFormView?
Please, please, any response any one can give me
me will be greatly appreciated. Demo projects are
beloved.
My email address is brinasas@yahoo.com
Sincerely,
Danielle (an overworked graduate student)
|
|
|
|
|
Is there any way of loading a bitmap to a CBitmap from file? I've got a lot of images and don't want to load them with the resource editor.
Thanks.
|
|
|
|
|
Yes, LoadImage
HANDLE LoadImage(
HINSTANCE hinst,
LPCTSTR lpszName,
UINT uType,
int cxDesired,
int cyDesired,
UINT fuLoad
);
using the value LR_LOADFROMFILE in the Load Flags.
Then use CBitmap::FromHandle
Carlos Antollini.
|
|
|
|
|
if "bitmap" means "BMP", try ::LoadImage
-c
------------------------------
Smaller Animals Software, Inc.
http://www.smalleranimals.com
|
|
|
|