Click here to Skip to main content
15,902,634 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWhere can I find a DB2 CLI function C++ class wrapper? Pin
wabc3-Jul-02 0:51
wabc3-Jul-02 0:51 
AnswerRe: Where can I find a DB2 CLI function C++ class wrapper? Pin
DiWa4-Jul-02 0:13
DiWa4-Jul-02 0:13 
GeneralList Control with Printing Support Pin
Renjith Ramachandran3-Jul-02 0:16
Renjith Ramachandran3-Jul-02 0:16 
GeneralRe: List Control with Printing Support Pin
surbinsho3-Jul-02 2:03
surbinsho3-Jul-02 2:03 
GeneralRe: List Control with Printing Support Pin
Ravi Bhavnani3-Jul-02 3:41
professionalRavi Bhavnani3-Jul-02 3:41 
GeneralRe: List Control with Printing Support Pin
surbinsho3-Jul-02 18:27
surbinsho3-Jul-02 18:27 
GeneralRe: List Control with Printing Support Pin
surbinsho4-Jul-02 19:07
surbinsho4-Jul-02 19:07 
GeneralGetting enter keypress in a control Pin
Chou3-Jul-02 0:06
Chou3-Jul-02 0:06 
I'm trying to catch an enter keypress from a single-line CEdit control in a dialog class. My solution is a hack which I presume won't with with non-CEdit controls. Can anyone suggest a cleaner way to do this?

My current solution is:

1. Derive control from CEdit
2. Set control style to multiline, want-return
3. Override OnChar:
// Grab that enter key
if (nChar == '\r') {
CWnd *pParent = GetParent();
if (pParent) {
::PostMessage (pParent->GetSafeHwnd(), WM_ENTERPRESS, 0, (LPARAM)GetDlgCtrlID());
}
}
else {
CEdit::OnChar(nChar, nRepCnt, nFlags);
}
4. Parent dialog box watches for the WM_ENTERPRESS message with lParam equal to the control's ID.

Thanks.
GeneralRe: Getting enter keypress in a control Pin
Nish Nishant3-Jul-02 0:57
sitebuilderNish Nishant3-Jul-02 0:57 
GeneralReverse Engineering Pin
super2-Jul-02 23:48
professionalsuper2-Jul-02 23:48 
GeneralRe: Reverse Engineering Pin
Christopher Duncan3-Jul-02 12:15
Christopher Duncan3-Jul-02 12:15 
GeneralRe: Reverse Engineering Pin
super3-Jul-02 18:25
professionalsuper3-Jul-02 18:25 
GeneralRe: Reverse Engineering Pin
Christopher Duncan4-Jul-02 4:13
Christopher Duncan4-Jul-02 4:13 
GeneralActiveX Pin
AJ1232-Jul-02 23:09
AJ1232-Jul-02 23:09 
GeneralName Clash Pin
2-Jul-02 22:49
suss2-Jul-02 22:49 
GeneralRe: Name Clash Pin
Renjith Ramachandran3-Jul-02 0:22
Renjith Ramachandran3-Jul-02 0:22 
GeneralRe: Name Clash Pin
Christian Graus3-Jul-02 1:58
protectorChristian Graus3-Jul-02 1:58 
GeneralRe: Name Clash Pin
Joaquín M López Muñoz3-Jul-02 3:04
Joaquín M López Muñoz3-Jul-02 3:04 
GeneralDebug of an EXE file launched by a CreateProcess Pin
auroch2-Jul-02 22:26
auroch2-Jul-02 22:26 
GeneralRe: Debug of an EXE file launched by a CreateProcess Pin
2-Jul-02 22:35
suss2-Jul-02 22:35 
Generaltimeout Pin
Ancient Dragon2-Jul-02 22:13
Ancient Dragon2-Jul-02 22:13 
GeneralRe: timeout Pin
Christian Graus2-Jul-02 22:19
protectorChristian Graus2-Jul-02 22:19 
GeneralRe: timeout Pin
Vrush3-Jul-02 2:19
Vrush3-Jul-02 2:19 
GeneralDatabase Probelm Pin
SamirSood2-Jul-02 22:06
SamirSood2-Jul-02 22:06 
GeneralRe: Database Probelm Pin
Christian Graus2-Jul-02 22:20
protectorChristian Graus2-Jul-02 22:20 

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.