Следуйте инструкциям в видео ниже, чтобы узнать, как установить наш сайт как веб-приложение на главный экран вашего устройства.
Примечание: Эта функция может быть недоступна в некоторых браузерах.
Вы используете устаревший браузер. Этот и другие сайты могут отображаться в нём неправильно. Необходимо обновить браузер или попробовать использовать другой.
ОБСУЖДЕНИЕ
RichEdit
2 ответов
6,5 тыс.
Codeby Academy
Практика и мастерство
От основ до продвинутого — программы для практиков Codeby.
EM_REPLACESEL Message
--------------------------------------------------------------------------------
The EM_REPLACESEL message replaces the current selection in an edit control with the specified text. You can send this message to either an edit control or a rich edit control.
Syntax
To send this message, call the SendMessage function as follows.
Код:
lResult = SendMessage( // returns LRESULT in lResult
(HWND) hWndControl, // handle to destination control
(UINT) EM_REPLACESEL, // message ID
(WPARAM) wParam, // = (WPARAM) () wParam;
(LPARAM) lParam // = (LPARAM) (LPCTSTR) lParam;
);
Parameters
wParam
Specifies whether the replacement operation can be undone. If this is TRUE, the operation can be undone. If this is FALSE , the operation cannot be undone. lParam
Pointer to a null-terminated string containing the replacement text.
Return Value
This message does not return a value.
Remarks
Use the EM_REPLACESEL message to replace only a portion of the text in an edit control. To replace all of the text, use the WM_SETTEXT message.
If there is no current selection, the replacement text is inserted at the current location of the caret.
сдесь уже не всё так просто
протестить я не могу (нет дома MSVS или подобного), но примеры подкинуть могу:
1) MSDN -> Knowledge Base -> HOWTO: Insert a Bitmap Into an RTF Document Using the RichEdit Controlссылка
2) RSDN -> Форум -> RichEdit с картинками или без ?ссылка
3) CodeGuru -> Visual C++ / C++ -> Controls -> Rich Edit Control -> Insert any HBITMAP (Bitmap) in your RichEdit Controlссылка
На данном сайте используются файлы cookie, чтобы персонализировать контент и сохранить Ваш вход в систему, если Вы зарегистрируетесь. Продолжая использовать этот сайт, Вы соглашаетесь на использование наших файлов cookie.