Click here to Skip to main content
15,890,741 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Win32 API: top-level window without focus Pin
Shog918-Jun-06 8:38
sitebuilderShog918-Jun-06 8:38 
GeneralRe: Win32 API: top-level window without focus Pin
Zoomby18-Jun-06 10:08
Zoomby18-Jun-06 10:08 
GeneralRe: Win32 API: top-level window without focus Pin
Shog918-Jun-06 10:30
sitebuilderShog918-Jun-06 10:30 
GeneralRe: Win32 API: top-level window without focus Pin
Zoomby18-Jun-06 11:41
Zoomby18-Jun-06 11:41 
GeneralRe: Win32 API: top-level window without focus Pin
Shog918-Jun-06 12:53
sitebuilderShog918-Jun-06 12:53 
GeneralRe: Win32 API: top-level window without focus Pin
Zoomby19-Jun-06 7:37
Zoomby19-Jun-06 7:37 
QuestionCRichEditCtrl not working :( Pin
YaronNir18-Jun-06 2:28
YaronNir18-Jun-06 2:28 
AnswerRe: CRichEditCtrl not working :( Pin
Dominik Reichl18-Jun-06 7:32
Dominik Reichl18-Jun-06 7:32 
You first need to set the text (using SetWindowText for example, as you did), then select the text that you want to format and call SetSelectionCharFormat for that selection. After this, you normally restore the selection to something normal, like no selection.

Example:
m_Edit.SetWindowText(_T("This is a test"));
m_Edit.SetSel(0, -1); // Select everything
CHARFORMAT cf;
cf.cbSize = sizeof(CHARFORMAT);
cf.dwMask = CFM_COLOR;
GetSelectionCharFormat(cf);
cf.crTextColor = RGB(255,0,0);
SetSelectionCharFormat(cf);
m_Edit.SetSel(0, 0); // Restore selection to something useful (like no selection)


Best regards
Dominik



_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do?? Wink | ;)
(doesn't work on NT)

QuestionStop working thread from UI thread Pin
Manjunath S18-Jun-06 2:05
Manjunath S18-Jun-06 2:05 
AnswerRe: Stop working thread from UI thread Pin
Randor 18-Jun-06 3:18
professional Randor 18-Jun-06 3:18 
AnswerRe: Stop working thread from UI thread Pin
Shog918-Jun-06 8:46
sitebuilderShog918-Jun-06 8:46 
Questionproblem with Open() method Pin
SWDevil18-Jun-06 1:52
SWDevil18-Jun-06 1:52 
GeneralRe: problem with Open() method Pin
Laxman Auti18-Jun-06 19:23
Laxman Auti18-Jun-06 19:23 
GeneralRe: problem with Open() method Pin
SWDevil18-Jun-06 20:09
SWDevil18-Jun-06 20:09 
QuestionHow to copy so much characters from string to string? Pin
Lord Kixdemp18-Jun-06 1:46
Lord Kixdemp18-Jun-06 1:46 
AnswerRe: How to copy so much characters from string to string? Pin
Justin Tay18-Jun-06 2:26
Justin Tay18-Jun-06 2:26 
AnswerRe: How to copy so much characters from string to string? Pin
Randor 18-Jun-06 3:40
professional Randor 18-Jun-06 3:40 
GeneralRe: How to copy so much characters from string to string? Pin
Lord Kixdemp18-Jun-06 3:55
Lord Kixdemp18-Jun-06 3:55 
Questionconversion problem with visual studio 2005 Pin
NorGUI18-Jun-06 1:23
NorGUI18-Jun-06 1:23 
AnswerRe: conversion problem with visual studio 2005 Pin
Gary R. Wheeler18-Jun-06 2:04
Gary R. Wheeler18-Jun-06 2:04 
AnswerRe: conversion problem with visual studio 2005 Pin
Michael Dunn18-Jun-06 11:06
sitebuilderMichael Dunn18-Jun-06 11:06 
QuestionHow sending message to Non CWnd class Pin
zrahimic18-Jun-06 0:27
zrahimic18-Jun-06 0:27 
AnswerRe: How sending message to Non CWnd class Pin
Jun Du18-Jun-06 5:17
Jun Du18-Jun-06 5:17 
Questionhow to turn off harddisk? Pin
andreasm8217-Jun-06 21:38
andreasm8217-Jun-06 21:38 
AnswerRe: how to turn off harddisk? Pin
andreasm8220-Jun-06 4:14
andreasm8220-Jun-06 4:14 

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.