Click here to Skip to main content
16,012,611 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralAccessing Objects in Mainframe Pin
johnsb27-Mar-04 3:48
johnsb27-Mar-04 3:48 
GeneralRe: Accessing Objects in Mainframe Pin
Prakash Nadar7-Mar-04 3:58
Prakash Nadar7-Mar-04 3:58 
GeneralRe: Accessing Objects in Mainframe Pin
johnsb27-Mar-04 4:32
johnsb27-Mar-04 4:32 
GeneralRe: Accessing Objects in Mainframe Pin
Prakash Nadar7-Mar-04 4:47
Prakash Nadar7-Mar-04 4:47 
GeneralRe: Accessing Objects in Mainframe Pin
johnsb27-Mar-04 5:25
johnsb27-Mar-04 5:25 
GeneralEdit Box Character Test (Input Filter) Pin
Freddie Code7-Mar-04 3:31
Freddie Code7-Mar-04 3:31 
GeneralRe: Edit Box Character Test (Input Filter) Pin
Prakash Nadar7-Mar-04 3:55
Prakash Nadar7-Mar-04 3:55 
GeneralRe: Edit Box Character Test (Input Filter) Pin
monrobot137-Mar-04 5:37
monrobot137-Mar-04 5:37 
Here's a quick and dirty implementation:
// in CMyEdit.h
afx_msg void OnChar (UINT nChar, UINT nRepCnt, UINT nFlags);
DECLAR_MESSAGE_MAP()
// in CMyEdit.cpp

BEGIN_MESSAGE_MAP(CMyEdit, CEdit)
    ON_WM_CHAR ()
END_MESSAGE_MAP()
<p></p>
void CMyEdit::OnChar (UINT nChar, UINT nRepCnt, UINT nFlags)
{
    int lwr = tolower (nChar);

    if (lwr >= 'a' && lwr <= 'f' && lwr != '.' ||
        lwr == VK_BACK || lwr == VK_DELETE
       )
        CEdit::OnChar (nChar, nRepCnt, nFlags)
}
Then add a control variable for the editbox and in your .h file change it's type to CMyEdit instead of CEdit. Not the best way to do it, but you could get by with it.

- Aaron
GeneralCut, copy and paste options... Pin
Neha6-Mar-04 22:06
Neha6-Mar-04 22:06 
GeneralRe: Cut, copy and paste options... Pin
Prakash Nadar6-Mar-04 22:48
Prakash Nadar6-Mar-04 22:48 
GeneralRe: Cut, copy and paste options... Pin
Neha7-Mar-04 18:45
Neha7-Mar-04 18:45 
GeneralAbout GetClipboardSequenceNumber Pin
Filomela6-Mar-04 21:24
Filomela6-Mar-04 21:24 
GeneralRe: About GetClipboardSequenceNumber Pin
Michael Dunn7-Mar-04 6:26
sitebuilderMichael Dunn7-Mar-04 6:26 
GeneralLadder Logic editor (PLC) in C++ Pin
schoni6-Mar-04 21:23
schoni6-Mar-04 21:23 
GeneralShellExecute and File Properties Pin
User 127826-Mar-04 21:08
User 127826-Mar-04 21:08 
GeneralRe: ShellExecute and File Properties Pin
Prakash Nadar6-Mar-04 21:40
Prakash Nadar6-Mar-04 21:40 
GeneralRe: ShellExecute and File Properties Pin
User 127827-Mar-04 4:10
User 127827-Mar-04 4:10 
GeneralRe: ShellExecute and File Properties Pin
Neha6-Mar-04 22:01
Neha6-Mar-04 22:01 
GeneralRe: ShellExecute and File Properties Pin
Prakash Nadar6-Mar-04 23:31
Prakash Nadar6-Mar-04 23:31 
GeneralRe: ShellExecute and File Properties Pin
Neha7-Mar-04 16:53
Neha7-Mar-04 16:53 
GeneralRe: ShellExecute and File Properties Pin
BaldwinMartin6-Mar-04 23:56
BaldwinMartin6-Mar-04 23:56 
GeneralRe: ShellExecute and File Properties Pin
User 127827-Mar-04 4:09
User 127827-Mar-04 4:09 
GeneralRe: ShellExecute and File Properties Pin
User 127827-Mar-04 4:12
User 127827-Mar-04 4:12 
GeneralRe: ShellExecute and File Properties Pin
Anonymous7-Mar-04 5:18
Anonymous7-Mar-04 5:18 
GeneralRe: ShellExecute and File Properties Pin
BaldwinMartin7-Mar-04 10:05
BaldwinMartin7-Mar-04 10:05 

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.