Click here to Skip to main content
15,923,006 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: total mouse control Pin
Raphael Kindt24-Jul-03 22:47
Raphael Kindt24-Jul-03 22:47 
GeneralRe: total mouse control Pin
Dominik Reichl24-Jul-03 22:50
Dominik Reichl24-Jul-03 22:50 
GeneralRe: total mouse control Pin
Raphael Kindt24-Jul-03 23:01
Raphael Kindt24-Jul-03 23:01 
QuestionHow can I disable/enable a firewire card in windows 2000 through Visual C++ 6.0 Pin
Tim Yen24-Jul-03 21:22
Tim Yen24-Jul-03 21:22 
AnswerRe: How can I disable/enable a firewire card in windows 2000 through Visual C++ 6.0 Pin
Iain Clarke, Warrior Programmer25-Jul-03 0:22
Iain Clarke, Warrior Programmer25-Jul-03 0:22 
GeneralRe: How can I disable/enable a firewire card in windows 2000 through Visual C++ 6.0 Pin
Tim Yen27-Jul-03 14:13
Tim Yen27-Jul-03 14:13 
GeneralExit SDI Pin
nakarin24-Jul-03 17:38
nakarin24-Jul-03 17:38 
GeneralRe: Exit SDI Pin
Beer2624-Jul-03 18:46
Beer2624-Jul-03 18:46 
GeneralRe: Exit SDI Pin
Ryan Binns24-Jul-03 18:51
Ryan Binns24-Jul-03 18:51 
GeneralRe: Exit SDI Pin
zeki yugnak25-Jul-03 1:22
zeki yugnak25-Jul-03 1:22 
GeneralDraw over Direct3d/Opengl applications Pin
sheesh-ka-bob24-Jul-03 17:03
sheesh-ka-bob24-Jul-03 17:03 
GeneralRe: Draw over Direct3d/Opengl applications Pin
Alexander M.,25-Jul-03 2:20
Alexander M.,25-Jul-03 2:20 
GeneralTransparent Drawing Pin
Anonymous24-Jul-03 15:22
Anonymous24-Jul-03 15:22 
GeneralRe: Transparent Drawing Pin
Ryan Binns24-Jul-03 16:01
Ryan Binns24-Jul-03 16:01 
GeneralRe: Transparent Drawing Pin
Anonymous24-Jul-03 16:06
Anonymous24-Jul-03 16:06 
GeneralRe: Transparent Drawing Pin
Ryan Binns24-Jul-03 16:08
Ryan Binns24-Jul-03 16:08 
GeneralMultithreading Pin
Gaurs24-Jul-03 14:30
Gaurs24-Jul-03 14:30 
GeneralRe: Multithreading Pin
Beer2624-Jul-03 15:03
Beer2624-Jul-03 15:03 
GeneralRe: Multithreading Pin
Ryan Binns24-Jul-03 15:05
Ryan Binns24-Jul-03 15:05 
GeneralRe: Multithreading Pin
Anonymous24-Jul-03 15:51
Anonymous24-Jul-03 15:51 
GeneralEdit box focus problem.. Pin
IrishSonic24-Jul-03 12:34
IrishSonic24-Jul-03 12:34 
GeneralRe: Edit box focus problem.. Pin
Ryan Binns24-Jul-03 15:08
Ryan Binns24-Jul-03 15:08 
GeneralRe: Edit box focus problem.. Pin
David Crow25-Jul-03 2:38
David Crow25-Jul-03 2:38 
Using OnKillFocus() in this fashion is a design flaw. Reconsider it. Do not enable the OK button UNTIL all controls contain valid data. For example, if you have an edit control (IDC_EDIT1) and it must be non-empty before the dialog can be dismissed, do something like:

void CMyDlg::DoDataExchange(CDataExchange* pDX)
{
    CDialog::DoDataExchange(pDX);
    //{{AFX_DATA_MAP(CMyDlg)
    DDX_Control(pDX, IDC_EDIT1, m_edit1);
    DDX_Control(pDX, IDOK, m_okbutton);
    //}}AFX_DATA_MAP
}

BEGIN_MESSAGE_MAP(CMyDlg, CDialog)
    //{{AFX_MSG_MAP(CMyDlg)
    ON_EN_CHANGE(IDC_EDIT1, OnChangeEdit1)
    //}}AFX_MSG_MAP
END_MESSAGE_MAP()

void CMyDlg::OnChangeEdit1( void )
{
    // the OK button starts life as disabled
    m_okbutton.EnableWindow(m_edit1.GetWindowTextLength() > 0);
}

QuestionBook? Pin
Tom Archer24-Jul-03 12:25
Tom Archer24-Jul-03 12:25 
AnswerRe: Book? Pin
Beer2624-Jul-03 15:52
Beer2624-Jul-03 15:52 

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.