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

C / C++ / MFC

 
Questionchar buf Pin
Smith#11-Jan-06 3:04
Smith#11-Jan-06 3:04 
AnswerRe: char buf Pin
sunit511-Jan-06 3:09
sunit511-Jan-06 3:09 
AnswerRe: char buf Pin
benjymous11-Jan-06 3:22
benjymous11-Jan-06 3:22 
GeneralRe: char buf Pin
Smith#11-Jan-06 3:30
Smith#11-Jan-06 3:30 
GeneralRe: char buf Pin
benjymous11-Jan-06 7:30
benjymous11-Jan-06 7:30 
GeneralRe: char buf Pin
Eytukan11-Jan-06 3:43
Eytukan11-Jan-06 3:43 
AnswerRe: char buf Pin
Nish Nishant11-Jan-06 3:59
sitebuilderNish Nishant11-Jan-06 3:59 
AnswerRe: char buf Pin
vipinasda11-Jan-06 4:43
vipinasda11-Jan-06 4:43 
AnswerRe: char buf Pin
lemur211-Jan-06 4:50
lemur211-Jan-06 4:50 
GeneralRe: char buf Pin
Sebastian Schneider11-Jan-06 5:12
Sebastian Schneider11-Jan-06 5:12 
AnswerRe: char buf Pin
Sebastian Schneider11-Jan-06 5:10
Sebastian Schneider11-Jan-06 5:10 
AnswerAnswer!! Pin
Eytukan11-Jan-06 5:25
Eytukan11-Jan-06 5:25 
AnswerRe: char buf Pin
Bob Stanneveld11-Jan-06 10:31
Bob Stanneveld11-Jan-06 10:31 
GeneralRe: char buf Pin
Tim Smith11-Jan-06 11:52
Tim Smith11-Jan-06 11:52 
GeneralRe: char buf Pin
Bob Stanneveld12-Jan-06 22:19
Bob Stanneveld12-Jan-06 22:19 
AnswerRe: char buf Pin
Stephen Hewitt11-Jan-06 15:34
Stephen Hewitt11-Jan-06 15:34 
QuestionPermissions and fopen Pin
Chris Meech11-Jan-06 3:02
Chris Meech11-Jan-06 3:02 
AnswerRe: Permissions and fopen Pin
vipinasda11-Jan-06 4:53
vipinasda11-Jan-06 4:53 
GeneralRe: Permissions and fopen Pin
Chris Meech11-Jan-06 6:17
Chris Meech11-Jan-06 6:17 
GeneralRe: Permissions and fopen Pin
__yb11-Jan-06 11:36
__yb11-Jan-06 11:36 
GeneralRe: Permissions and fopen Pin
vipinasda11-Jan-06 16:23
vipinasda11-Jan-06 16:23 
GeneralRe: Permissions and fopen Pin
__yb11-Jan-06 23:52
__yb11-Jan-06 23:52 
QuestionON_NOTIFY_RANGE and Textbox's KillFocus Pin
Sarvan AL11-Jan-06 2:31
Sarvan AL11-Jan-06 2:31 
AnswerRe: ON_NOTIFY_RANGE and Textbox's KillFocus Pin
Cedric Moonen11-Jan-06 2:33
Cedric Moonen11-Jan-06 2:33 
From the MSDN website:

ON_NOTIFY_RANGE

If you need to process the same WM_NOTIFY message for a set of controls, you can use ON_NOTIFY_RANGE rather than ON_NOTIFY. For instance, you may have a set of buttons for which you want to perform the same action for a certain notification message.

When you use ON_NOTIFY_RANGE, you specify a contiguous range of child identifiers for which to handle the notification message by specifying the beginning and ending child identifiers of the range.

ClassWizard does not handle ON_NOTIFY_RANGE; to use it, you need to edit your message map yourself.

The message-map entry and function prototype for ON_NOTIFY_RANGE are as follows:

ON_NOTIFY_RANGE( wNotifyCode, id, idLast, memberFxn )

where the italicized parameters are replaced with:

wNotifyCode

The code for the notification message to be handled, such as LVN_KEYDOWN.

id

The first identifier in the contiguous range of identifiers.

idLast

The last identifier in the contiguous range of identifiers.

memberFxn

The member function to be called when this notification is sent.

Your member function must be declared with the following prototype:

afx_msg void memberFxn( UINT id, NMHDR * pNotifyStruct, LRESULT * result );

where the italicized parameters are:

id

The child identifier of the control that sent the notification.

pNotifyStruct

A pointer to the notification structure, as described above.

result

A pointer to the result code you'll set before you return.

AnswerRe: ON_NOTIFY_RANGE and Textbox's KillFocus Pin
FarPointer11-Jan-06 3:15
FarPointer11-Jan-06 3:15 

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.