Click here to Skip to main content
15,921,694 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: WaitForMultipleObjects always returns WAIT_FAILED Pin
Mike Dimmick5-Dec-03 0:02
Mike Dimmick5-Dec-03 0:02 
GeneralRe: WaitForMultipleObjects always returns WAIT_FAILED Pin
Kuniva5-Dec-03 0:18
Kuniva5-Dec-03 0:18 
GeneralButton in windows forms..c++ Pin
mitil203904823044-Dec-03 10:36
mitil203904823044-Dec-03 10:36 
GeneralSwitching Views in SDI Pin
swerajan4-Dec-03 9:52
swerajan4-Dec-03 9:52 
GeneralRe: Switching Views in SDI Pin
Peter Molnar4-Dec-03 13:38
Peter Molnar4-Dec-03 13:38 
GeneralProblem with lpdirect3ddevice9 Pin
Simon Booth4-Dec-03 9:26
Simon Booth4-Dec-03 9:26 
GeneralRe: Problem with lpdirect3ddevice9 Pin
ZoogieZork4-Dec-03 18:17
ZoogieZork4-Dec-03 18:17 
GeneralPostMessage() problems Pin
Sid_smily4-Dec-03 9:18
Sid_smily4-Dec-03 9:18 
Hi,

i have inherited a class from CEdit, and want to send my application a user defined message from this class. i have used PostMessage function for that reason from my class's LBUTTONDOWN message.

The message is captured by my window (a dialog box that has an edit box linked by a variable of my class) and works well while i work in Debug configuration, but causes an unhandled exception in Release ConfigurationConfused | :confused: .

I would be obliged if any one can help me..
--------
THE CODE SAMPLE:
--------
Dev. Platform : VC++ 6.0
OS: Windows 2000 Professional

//class definition
class CMyClass : public CEdit
{
...
}

Void CMyClass::OnLButtonDown(UINT nFlags, CPoint point)
{
// my code...
....

CEdit::OnLButtonDown(nFlags, point);

//m_hParWnd is the handle of parent dialog claas
::PostMessage(m_hParWnd, TOGGLE, 0, 0);
}

/*My applications main dialog with a member variable of CMyClass associated with an edit box*/
..
ON_MESSAGE(TOGGLE, OnToggle)
...

CMyAppDlg::OnToggle()
{
....
}

Kind Regards


Siddique Ahmed
Senior Software Engineer
Telelogix Software
(www.telelogix.com)
GeneralRe: PostMessage() problems Pin
David Crow4-Dec-03 9:24
David Crow4-Dec-03 9:24 
GeneralThe right way Pin
Abin4-Dec-03 13:27
Abin4-Dec-03 13:27 
GeneralUpdateLayeredWindow() Help !!! Pin
4-Dec-03 8:50
suss4-Dec-03 8:50 
GeneralLastest beta of Visual Studio .NET Pin
Robert Buldoc4-Dec-03 7:54
Robert Buldoc4-Dec-03 7:54 
GeneralRe: Lastest beta of Visual Studio .NET Pin
Mike Dimmick5-Dec-03 0:23
Mike Dimmick5-Dec-03 0:23 
GeneralRe: Lastest beta of Visual Studio .NET Pin
Robert Buldoc5-Dec-03 21:05
Robert Buldoc5-Dec-03 21:05 
GeneralVS .NET window type Pin
rpadrela4-Dec-03 7:29
rpadrela4-Dec-03 7:29 
GeneralRe: VS .NET window type Pin
Christian Graus4-Dec-03 10:17
protectorChristian Graus4-Dec-03 10:17 
GeneralRe: VS .NET window type Pin
rpadrela5-Dec-03 3:18
rpadrela5-Dec-03 3:18 
GeneralRe: VS .NET window type Pin
Christian Graus7-Dec-03 8:28
protectorChristian Graus7-Dec-03 8:28 
QuestionLayout controlbars? Pin
Zizilamoroso4-Dec-03 7:20
Zizilamoroso4-Dec-03 7:20 
Questionhow do i create a resource assembly? Pin
godzooky4-Dec-03 6:48
godzooky4-Dec-03 6:48 
GeneralReplace MFC with Web Browser Pin
sweep1234-Dec-03 6:41
sweep1234-Dec-03 6:41 
Generalenable profiling in .net 2003 Pin
Jon Winkel4-Dec-03 6:38
sussJon Winkel4-Dec-03 6:38 
GeneralRe: enable profiling in .net 2003 Pin
Joe Woodbury4-Dec-03 14:43
professionalJoe Woodbury4-Dec-03 14:43 
GeneralRe: enable profiling in .net 2003 Pin
Anonymous4-Dec-03 23:42
Anonymous4-Dec-03 23:42 
GeneralAdding MSFlexgrid to a tab control Pin
sanjay zore4-Dec-03 6:03
sanjay zore4-Dec-03 6:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.