Click here to Skip to main content
16,006,013 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalerror C2065: 'cout' : undeclared identifier Pin
Anonymous30-May-04 13:43
Anonymous30-May-04 13:43 
GeneralRe: error C2065: 'cout' : undeclared identifier Pin
kfaday30-May-04 14:37
kfaday30-May-04 14:37 
GeneralRe: error C2065: 'cout' : undeclared identifier Pin
Michael Dunn30-May-04 16:25
sitebuilderMichael Dunn30-May-04 16:25 
Generalform background bitmap Pin
zubeido30-May-04 13:41
zubeido30-May-04 13:41 
GeneralRe: form background bitmap Pin
Michael Dunn30-May-04 16:27
sitebuilderMichael Dunn30-May-04 16:27 
GeneralRe: form background bitmap Pin
Aizaz31-May-04 2:14
Aizaz31-May-04 2:14 
Generalfunny working ListBox - help! Pin
Anonymous30-May-04 11:46
Anonymous30-May-04 11:46 
GeneralDeriving Edit Box Control Pin
Grahamfff30-May-04 11:11
Grahamfff30-May-04 11:11 
I have been trying to have an Edit Box take the Tab key as a simple move off the control - just tab around all the controls with Tabstop set.
Currently the Tab acts as an end to data input (i.e. like a Return or Enter key pressed). I did start to Derive the Edit Box control, but got stuck, see code below!

// MyEdit.cpp : implementation file<br />
//<br />
<br />
#include "stdafx.h"<br />
#include "MyEdit.h"<br />
<br />
<br />
// CMyEdit<br />
<br />
IMPLEMENT_DYNAMIC(CMyEdit, CEdit)<br />
CMyEdit::CMyEdit()<br />
{<br />
}<br />
<br />
CMyEdit::~CMyEdit()<br />
{<br />
}<br />
<br />
BEGIN_MESSAGE_MAP(CMyEdit, CEdit)<br />
 //{{AFX_MSG_MAP(CMyEdit)<br />
 ON_WM_GETDLGCODE() <br />
 //}}AFX_MSG_MAP<br />
END_MESSAGE_MAP()<br />
<br />
<br />
// CMyEdit message handlers<br />
<br />
UINT CMyEdit::OnGetDlgCode()<br />
{<br />
	//return CEdit::OnGetDlgCode() | DLGC_WANTTAB;<br />
	//return DLGC_WANTALLKEYS;<br />
	return DLGC_WANTTAB;<br />
// WHat am I doing hear!!!!<br />
}

Currently the Edit Box (MyEdit) only processes the TAB key, I want it to process all keys but with the Tab key just move on to the next tabstop.

Help!


grahamfff
GeneralC++ Launches File Pin
vinniez_ok30-May-04 9:22
vinniez_ok30-May-04 9:22 
GeneralRe: C++ Launches File Pin
Ravi Bhavnani30-May-04 9:45
professionalRavi Bhavnani30-May-04 9:45 
GeneralRe: C++ Launches File Pin
Michael Dunn30-May-04 10:09
sitebuilderMichael Dunn30-May-04 10:09 
GeneralRe: C++ Launches File Pin
vinniez_ok30-May-04 13:04
vinniez_ok30-May-04 13:04 
GeneralRe: C++ Launches File Pin
Michael Dunn30-May-04 16:30
sitebuilderMichael Dunn30-May-04 16:30 
GeneralRe: C++ Launches File Pin
vinniez_ok30-May-04 17:14
vinniez_ok30-May-04 17:14 
GeneralPrinting A report in A database Pin
Youngranger30-May-04 8:30
Youngranger30-May-04 8:30 
Questionhow to get IDirectNotify Pin
laia30-May-04 8:08
laia30-May-04 8:08 
AnswerRe: how to get IDirectNotify Pin
Alexander M.,30-May-04 11:40
Alexander M.,30-May-04 11:40 
Generalthis is my method Pin
laia31-May-04 2:59
laia31-May-04 2:59 
GeneralUnicode Programming Pin
Truong D. Toan30-May-04 7:46
Truong D. Toan30-May-04 7:46 
GeneralRe: Unicode Programming Pin
f6430-May-04 8:03
f6430-May-04 8:03 
GeneralRe: Unicode Programming Pin
Truong D. Toan30-May-04 20:01
Truong D. Toan30-May-04 20:01 
GeneralRe: Unicode Programming Pin
f6431-May-04 8:05
f6431-May-04 8:05 
GeneralRe: Unicode Programming Pin
Diddy1-Jun-04 5:31
Diddy1-Jun-04 5:31 
GeneralPrinting Bitmaps Pin
Sergio Batarce30-May-04 5:56
Sergio Batarce30-May-04 5:56 
GeneralRe: Printing Bitmaps Pin
Roger Allen1-Jun-04 5:12
Roger Allen1-Jun-04 5:12 

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.