Click here to Skip to main content
15,888,521 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralThanks: ON_NOTIFY_RANGE and Textbox's KillFocus Pin
Sarvan AL11-Jan-06 21:43
Sarvan AL11-Jan-06 21:43 
QuestionHow to set the End of File to a file opened by "fopen" with "r+" Pin
Sarvan AL11-Jan-06 2:23
Sarvan AL11-Jan-06 2:23 
AnswerRe: How to set the End of File to a file opened by "fopen" with "r+" Pin
Prakash Nadar11-Jan-06 2:54
Prakash Nadar11-Jan-06 2:54 
AnswerRe: How to set the End of File to a file opened by "fopen" with "r+" Pin
kakan11-Jan-06 4:04
professionalkakan11-Jan-06 4:04 
GeneralThanks: How to set the End of File to a file opened by "fopen" with "r+" Pin
Sarvan AL11-Jan-06 21:40
Sarvan AL11-Jan-06 21:40 
GeneralRe: Thanks: How to set the End of File to a file opened by "fopen" with "r+" Pin
kakan11-Jan-06 22:05
professionalkakan11-Jan-06 22:05 
QuestionVisual studio intellisense Pin
Russell'11-Jan-06 2:14
Russell'11-Jan-06 2:14 
AnswerRe: Visual studio intellisense Pin
Owner drawn11-Jan-06 17:09
Owner drawn11-Jan-06 17:09 
QuestionPrint image to fit the page Pin
Alberto_Canabal11-Jan-06 2:04
Alberto_Canabal11-Jan-06 2:04 
QuestionRead\Write Registry Keys Pin
KevinSheedy11-Jan-06 2:04
KevinSheedy11-Jan-06 2:04 
AnswerRe: Read\Write Registry Keys Pin
Russell'11-Jan-06 2:20
Russell'11-Jan-06 2:20 
AnswerRe: Read\Write Registry Keys Pin
James R. Twine11-Jan-06 5:18
James R. Twine11-Jan-06 5:18 
QuestionMFC or ActiveX equivalent control to VB Dirlist control Pin
srimayank11_codeproject11-Jan-06 2:02
srimayank11_codeproject11-Jan-06 2:02 
QuestionHow to crash my programe before main()? Pin
vikas amin11-Jan-06 0:51
vikas amin11-Jan-06 0:51 
AnswerRe: How to crash my programe before main()? Pin
Anilkumar K V11-Jan-06 1:01
Anilkumar K V11-Jan-06 1:01 
GeneralRe: How to crash my programe before main()? Pin
vikas amin11-Jan-06 1:51
vikas amin11-Jan-06 1:51 

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.