|
Today I went to go add a bookmark to one of my files and I was shocked to see tons of bookmarks that I did not create. They pointed to source files in directories that I don't even have. I download a lot of free source code from this site and others. When you open a project that someone else created does it add their bookmarks to yours?
Cathy
Life's uncertain, have dessert first!
|
|
|
|
|
It's common that I share my Files and Projects with co-workers. Several times happen me that you comment. Specially when I open other projects. But sometimes....
Regards!!!
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
Thanks!
I think that was a bad design.
(I added your Sonork ID)
Cathy
Life's uncertain, have dessert first!
|
|
|
|
|
I have a dialog application, call it dialog "A". It can launch a modal dialog, dialog "B". The modal dialog can launch a modeless dialog "C" that is owned by the main application dialog (A).
Because C is modeless and owned by A, You can close dialog B and still have dialog C available. (and you can then re-open B, etc).
I want to be able to send a WM_COMMAND message from the modeless dialog C to the main dialog, A. I have a pointer to A, so calling PostMessage to post the message is no problem. The problem is this: when dialog B is up (which is modal, owned by A), the message from C doesn't get to A, because B, being modal, is eating all the messages.
What should happen is this: A, B and C are all up. C Posts a message that causes B to close and A to do something. How can I do this??
-c
Smaller Animals Software, Inc.
|
|
|
|
|
You may need to do thi with 2 messages - a WM_CLOSE to close B and then the message to A.
Alternatively, seeing you know this is a 'special' message you could filter it in the PreTranslateMessage function of the dialog(s). If the message always goes directly to B, the filter could pass it on to A and get B to suicide.
Happy programming!!
|
|
|
|
|
I would have dlg B post (relay) the message to dlg A before closing. Of course, you'd have to have the CWnd of dlg A in order to do so...
A knows about B, but does it know about C, or does only B know about C?
You could create a CTypedPtrArray of CWnd and store all of the dialogs' CWnd*'s in it, and either make it a global array or pass it in the constructors from one dlg to the next, and have each dialog add it's own CWnd* to it as it goes. Then, you could post the message to the desired CWnd*'s.
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
A owns both B and C. C knows about A and B knows about A (A is their parent). C doesn't know anything about B, though i guess i could hack up something that would make it available.
what a mess
-c
Smaller Animals Software, Inc.
|
|
|
|
|
If A knows about both B and C, and if you want something to happen in B if C closes, just Have C post a message to A to indicate that C is closing, andf have A post a message to B that tells B that C has closed and B can react accordingly...
Sounds like you already have everything you need.
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
I'm capturing frames from a live video stream and every once in a while, I'll get a black and white image instead of color. Can anyone tell me what I might be doing to cause such a thing to happen?
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Loose cable? Damaged card? It does not seem like a software problem to me. Maybe switching to another testing scenario (different cable/machine/card) could shed some light.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Hi, not really a programming question. Some punk deleted the start up icon of my visual C++ from the start menu and from the desktop. How do I bring it back?
(I don't have the CD)
|
|
|
|
|
Find MSdev.exe in
Program Files\Microsoft Visual Studio\Common\MSdev98\bin
and drag/drop it to the part of the start menu you wish.
Happy programming!!
|
|
|
|
|
1. Where can I find a process-quering-class that can do the following:
I. Get a process's memory usage at a specific given time (Must).
II. Get a process's CPU usage at a specific given time (Must).
III. Can enumerate all running processes (Optional...).
2. I want to download CPop3Connection class that I found at this site
using the search engine. Unfotunately I can't find it.
I'll be very glad if someone will leave a link to it...
--BlackSmith--
"With the help of all mighty", 2001, Me.
|
|
|
|
|
Hi,
I´m using Automation to have in one splitter window a Word window and in the right pane some buttons to add graphics tables...
The problem comes on XP, when I close that window, I get some strange error when it´s close ( OnSize is called after the window is destroyed), here is the code i call
void CReportFrame::OnClose()
{
TRY {
CWnd* wnd = m_wndSplitter.GetPane(0, 0);
wnd->DestroyWindow();
delete wnd;
CReportDoc* pDoc = GetReportDoc();
COleClientItem* pItem = pDoc->GetPrimarySelectedItem(GetReportWordView());
if (pItem != NULL) {
pItem->Delete();
}
CFrameWnd::OnClose();
delete pItem;
} CATCH(CException, e) {
AfxMessageBox("CReportFrame::OnClose : exception caught.");
ASSERT(false);
e;
} END_CATCH;
}
Thanks in advance, Bye !
Braulio
|
|
|
|
|
Maybe you should use: m_wndSplitter.DeleteView(0, 0);
instead of:
CWnd* wnd = m_wndSplitter.GetPane(0, 0);
wnd->DestroyWindow();
delete wnd;
- God bless the World
|
|
|
|
|
I'm trying to call a Property Sheet from an explicitly linked
Extenstion DLL.
The DoModal function is called but no Window appears, I get the trace message "CPropertySheet Returned Error code 0"?? But that means Success!
It Works for Dialogs etc..
Has anybody else had the same problem?
cheers
Asim
.........
I'd rather be rich than stupid.
|
|
|
|
|
As a possible aolution, have you called AFX_MANAGE_STATE in the DLL code so that the correct dialog resources can be found?
Roger Allen
Sonork 100.10016
|
|
|
|
|
Hey,
I have a control derived directly from CWnd.
The WM_MOUSEWHEEL message is never sent to my window/control, I have also tried with spy++, but no WM_MOUSEWHEEL
I have tried to define _WIN32_WINNT 0x0400 in stdafx.h, but it made no difference...
Anyone got an idea?
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
E-mail me the source code + your E-mail.
--BlackSmith--
"With the help of all mighty", 2001, Me.
|
|
|
|
|
What OS has this problem?
Michael
|
|
|
|
|
I'm currently running WinXP Professional...
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
I want to change the common dialog box for all applications, new, old, all of them. Should I use a CBT Hook or intercept the API itself. Are there other options? Any opions?
Thanks
Ralph Krausse
|
|
|
|
|
Microsoft Detours Library
- God bless the World
|
|
|
|
|
How does one go about to implement handlers for buttons that are created dynamically at runtime? E.g. I want to create a button which should run a program when pressed. The program to run is configured by the user. I was thinking of storing the program name within the button object. Then I could use one handler for all of the buttons, but how do I know which button it was that called the handler (in order to retrieve the program name)?
Cheers,
/Fredrik
Do you Sonork? I do! 100.11430:PhatBoy
|
|
|
|
|
You can use ON_COMMAND_RANGE to handle a range of commands:
class CMyDialog : public CDialog
{
afx_msg void OnHandleCommands(UINT nID);
DECLARE_MESSAGE_MAP()
};
BEGIN_MESSAGE_MAP(CMyDialog, CDialog)
ON_COMMAND_RANGE(ID_COMMAND_FIRST, ID_COMMAND_LAST, OnHandleCommands)
END_MESSAGE_MAP()
void CMyDialog::OnHandleCommands(UINT nID)
{
// nID contains the ID of the command to handle
}
|
|
|
|