Click here to Skip to main content
15,894,405 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralReceiving SMS problem Pin
ccui15-Mar-05 10:29
ccui15-Mar-05 10:29 
GeneralHelp me with COM Pin
Budric B.15-Mar-05 10:28
Budric B.15-Mar-05 10:28 
GeneralRe: Help me with COM Pin
jan larsen16-Mar-05 3:33
jan larsen16-Mar-05 3:33 
GeneralRe: Help me with COM Pin
Budric B.16-Mar-05 11:31
Budric B.16-Mar-05 11:31 
GeneralRe: Help me with COM Pin
jan larsen16-Mar-05 20:16
jan larsen16-Mar-05 20:16 
GeneralRe: Help me with COM Pin
Budric B.17-Mar-05 3:23
Budric B.17-Mar-05 3:23 
GeneralRe: Help me with COM Pin
jan larsen18-Mar-05 0:46
jan larsen18-Mar-05 0:46 
GeneralCreating Edit Boxes from View class.. Pin
Romashki15-Mar-05 10:08
Romashki15-Mar-05 10:08 
I have a MDI apllication with modeless property sheet. I want to create and display edit boxes on one of the property pages. They must be created on WM_LBUTTONUP event in my View-derived class..
So please, tell me, what's wrong in here:

//class declaration for one of the Property Sheets pages<br />
	class CInput : public CPropertyPage<br />
	{...<br />
	void AddEditBox();<br />
	...<br />
	}<br />
<br />
<br />
	//function, creating Edit Boxes<br />
	void CInput::AddEditBox()<br />
	{<br />
<br />
	CRect rect( x1, y1, x2, y2);  // some values..<br />
	int ID = 4000;<br />
<br />
	CEdit *p = new CEdit;<br />
	<br />
	p->Create( WS_CHILD | WS_VISIBLE | WS_TABSTOP |<br />
             ES_AUTOHSCROLL | WS_BORDER | WS_DISABLED, rect, this, ID );<br />
<br />
	}


Now, I want to call this function from my View class (on WM_LBUTTONUP event)

void CMyView::OnLButtonUp(UINT nFlags, CPoint point) <br />
	{<br />
	...<br />
	CInput inp;<br />
	...<br />
	inp.AddInputEdit();<br />
	...<br />
	}


but Create function (in the AddInputEdit) returns 0..? why? what I did wrong..?Frown | :(
GeneralRe: Creating Edit Boxes from View class.. Pin
PJ Arends15-Mar-05 10:24
professionalPJ Arends15-Mar-05 10:24 
GeneralRe: Creating Edit Boxes from View class.. Pin
Romashki15-Mar-05 10:33
Romashki15-Mar-05 10:33 
GeneralRe: Creating Edit Boxes from View class.. Pin
PJ Arends15-Mar-05 10:45
professionalPJ Arends15-Mar-05 10:45 
GeneralRe: Creating Edit Boxes from View class.. Pin
Romashki15-Mar-05 12:11
Romashki15-Mar-05 12:11 
GeneralOptions Dialog in Visual Studio .NET Pin
Gagnon Claude15-Mar-05 9:00
Gagnon Claude15-Mar-05 9:00 
GeneralRe: Options Dialog in Visual Studio .NET Pin
Ravi Bhavnani15-Mar-05 9:23
professionalRavi Bhavnani15-Mar-05 9:23 
GeneralNeed help with an Application Icon Pin
Ian Bowler15-Mar-05 7:31
Ian Bowler15-Mar-05 7:31 
GeneralRe: Need help with an Application Icon Pin
includeh1015-Mar-05 7:42
includeh1015-Mar-05 7:42 
GeneralRe: Need help with an Application Icon Pin
Ian Bowler15-Mar-05 7:48
Ian Bowler15-Mar-05 7:48 
GeneralRe: Need help with an Application Icon Pin
includeh1015-Mar-05 8:06
includeh1015-Mar-05 8:06 
GeneralRe: Need help with an Application Icon Pin
Ian Bowler15-Mar-05 8:08
Ian Bowler15-Mar-05 8:08 
GeneralRe: Need help with an Application Icon Pin
includeh1015-Mar-05 8:17
includeh1015-Mar-05 8:17 
GeneralRe: Need help with an Application Icon Pin
Ian Bowler15-Mar-05 8:48
Ian Bowler15-Mar-05 8:48 
GeneralRe: Need help with an Application Icon Pin
David Crow15-Mar-05 9:24
David Crow15-Mar-05 9:24 
GeneralRe: Need help with an Application Icon Pin
PJ Arends15-Mar-05 10:32
professionalPJ Arends15-Mar-05 10:32 
GeneralRe: Need help with an Application Icon Pin
Ian Bowler15-Mar-05 11:35
Ian Bowler15-Mar-05 11:35 
Generalclass with dynamic array Pin
Anonymous15-Mar-05 7:30
Anonymous15-Mar-05 7:30 

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.