Skip to content

Commit 522cc3e

Browse files
author
mikeblome
committed
fixed broken links in mfc macros page
1 parent 9ff9e76 commit 522cc3e

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

docs/mfc/reference/message-map-macros-mfc.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ DECLARE_MESSAGE_MAP( )
9090
> [!NOTE]
9191
> If you declare any member after `DECLARE_MESSAGE_MAP`, you must specify a new access type (**public**, `private`, or `protected`) for them.
9292
93-
For more information on message maps and the `DECLARE_MESSAGE_MAP` macro, see [Message Handling and Mapping Topics](message-handling-and-mapping.md).
93+
For more information on message maps and the `DECLARE_MESSAGE_MAP` macro, see [Message Handling and Mapping Topics](../../mfc/message-handling-and-mapping.md).
9494

9595
### Example
9696
```cpp
@@ -145,7 +145,7 @@ END_MESSAGE_MAP( )
145145
```
146146

147147
### Remarks
148-
For more information on message maps and the `END_MESSAGE_MAP` macro, see [Message Handling and Mapping Topics](message-handling-and-mapping.md).
148+
For more information on message maps and the `END_MESSAGE_MAP` macro, see [Message Handling and Mapping Topics](../../mfc/message-handling-and-mapping.md).
149149

150150
### Requirements
151151
**Header:** afxwin.h
@@ -171,7 +171,7 @@ ON_COMMAND( id, memberFxn )
171171

172172
When a command-target object receives a Windows **WM_COMMAND** message with the specified ID, `ON_COMMAND` will call the member function `memberFxn` to handle the message.
173173

174-
Use `ON_COMMAND` to map a single command to a member function. Use [ON_COMMAND_RANGE](#on_command_range) to map a range of command ids to one member function. Only one message-map entry can match a given command id. That is, you can't map a command to more than one handler. For more information and examples, see [Message Handling and Mapping Topics](message-handling-and-mapping.md).
174+
Use `ON_COMMAND` to map a single command to a member function. Use [ON_COMMAND_RANGE](#on_command_range) to map a range of command ids to one member function. Only one message-map entry can match a given command id. That is, you can't map a command to more than one handler. For more information and examples, see [Message Handling and Mapping Topics](../../mfc/message-handling-and-mapping.md).
175175

176176
### Example
177177
```cpp
@@ -207,7 +207,7 @@ ON_CONTROL( wNotifyCode, id, memberFxn )
207207
208208
There should be exactly one `ON_CONTROL` macro statement in your message map for every control notification message that must be mapped to a message-handler function.
209209
210-
For more information and examples, see [Message Handling and Mapping Topics](message-handling-and-mapping.md).
210+
For more information and examples, see [Message Handling and Mapping Topics](../../mfc/message-handling-and-mapping.md).
211211
212212
### Requirements
213213
**Header:** afxmsg_.h
@@ -239,7 +239,7 @@ ON_MESSAGE( message, memberFxn )
239239
> [!NOTE]
240240
> In addition to user-defined messages, `ON_MESSAGE` handles less common Windows messages. For more information, see Knowledge Base article [99848: INFO: Use ON_MESSAGE() Macro to Map Less-Common Messages](http://go.microsoft.com/fwlink/?linkId=192022).
241241
242-
For more information and examples, see [Message Handling and Mapping Topics](message-handling-and-mapping.md) and [User-Defined Handlers](user-defined-handlers.md)
242+
For more information and examples, see [Message Handling and Mapping Topics](../../mfc/message-handling-and-mapping.md) and [User-Defined Handlers](user-defined-handlers.md)
243243
244244
### Example
245245
```cpp
@@ -288,7 +288,7 @@ ON_OLECMD( pguid, olecmdid, id )
288288
### Remarks
289289
`IOleCommandTarget` allows a container to receive commands that originate in a DocObject's user interface, and allows the container to send the same commands (such as New, Open, SaveAs, and Print on the File menu; and Copy, Paste, Undo, and so forth on the Edit menu) to a DocObject.
290290

291-
`IOleCommandTarget` is simpler than OLE Automation's `IDispatch`. `IOleCommandTarget` relies entirely on a standard set of commands that rarely have arguments, and no type information is involved (type safety is diminished for command arguments as well). If you do need to dispatch commands with arguments, use [COleServerDoc::OnExecOleCmd](coleserverdoc.md#onexecolecmd.md).
291+
`IOleCommandTarget` is simpler than OLE Automation's `IDispatch`. `IOleCommandTarget` relies entirely on a standard set of commands that rarely have arguments, and no type information is involved (type safety is diminished for command arguments as well). If you do need to dispatch commands with arguments, use [COleServerDoc::OnExecOleCmd](coleserverdoc-class.md#onexecolecmd.md).
292292

293293
The `IOleCommandTarget` standard menu commands have been implemented by MFC in the following macros:
294294

@@ -414,7 +414,7 @@ ON_REGISTERED_MESSAGE( nMessageVariable, memberFxn )
414414
### Remarks
415415
This macro indicates which function will handle the registered message.
416416

417-
For more information and examples, see [Message Handling and Mapping Topics](message-handling-and-mapping.md).
417+
For more information and examples, see [Message Handling and Mapping Topics](../../mfc/message-handling-and-mapping.md).
418418

419419
### Example
420420
```cpp
@@ -496,7 +496,7 @@ ON_UPDATE_COMMAND_UI( id, memberFxn )
496496
### Remarks
497497
There should be exactly one `ON_UPDATE_COMMAND_UI` macro statement in your message map for every user-interface update command that must be mapped to a message-handler function.
498498
499-
For more information and examples, see [Message Handling and Mapping Topics](message-handling-and-mapping.md).
499+
For more information and examples, see [Message Handling and Mapping Topics](../../mfc/message-handling-and-mapping.md).
500500
501501
### Requirements
502502
**Header:** afxole.h
@@ -526,7 +526,7 @@ ON_COMMAND_RANGE( id1, id2, memberFxn )
526526
### Remarks
527527
The range of IDs starts with `id1` and ends with `id2`.
528528
529-
Use `ON_COMMAND_RANGE` to map a range of command IDs to one member function. Use [ON_COMMAND](#on_command) to map a single command to a member function. Only one message-map entry can match a given command ID. That is, you can't map a command to more than one handler. For more information on mapping message ranges, see [Handlers for Message-Map Ranges](handlers-for-message-map-ranges.md).
529+
Use `ON_COMMAND_RANGE` to map a range of command IDs to one member function. Use [ON_COMMAND](#on_command) to map a single command to a member function. Only one message-map entry can match a given command ID. That is, you can't map a command to more than one handler. For more information on mapping message ranges, see [Handlers for Message-Map Ranges](../../mfc/handlers-for-message-map-ranges.md).
530530
531531
There is no automatic support for message map ranges, so you must place the macro yourself.
532532
@@ -608,7 +608,7 @@ ON_CONTROL_RANGE( wNotifyCode, id1, id2, memberFxn )
608608

609609
There is no automatic support for message map ranges, so you must place the macro yourself.
610610

611-
For more information on implementing handler functions for a range of control IDs, refer to [Handlers for Message-Map Ranges](handlers-for-message-map-ranges.md).
611+
For more information on implementing handler functions for a range of control IDs, refer to [Handlers for Message-Map Ranges](../../mfc/handlers-for-message-map-ranges.md).
612612

613613
### Requirements
614614
**Header:** afxmsg_.h

0 commit comments

Comments
 (0)