Click here to Skip to main content
15,918,471 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionURGENT - Using CreateWindow from an MFC application Pin
ravialla3-Mar-08 0:35
ravialla3-Mar-08 0:35 
QuestionRe: URGENT - Using CreateWindow from an MFC application Pin
CPallini3-Mar-08 0:53
mveCPallini3-Mar-08 0:53 
QuestionRe: URGENT - Using CreateWindow from an MFC application Pin
ravialla3-Mar-08 5:04
ravialla3-Mar-08 5:04 
GeneralRe: URGENT - Using CreateWindow from an MFC application Pin
David Crow3-Mar-08 5:07
David Crow3-Mar-08 5:07 
GeneralRe: URGENT - Using CreateWindow from an MFC application Pin
JohnCz4-Mar-08 15:29
JohnCz4-Mar-08 15:29 
QuestionRe: URGENT - Using CreateWindow from an MFC application Pin
ravialla5-Mar-08 16:47
ravialla5-Mar-08 16:47 
AnswerRe: URGENT - Using CreateWindow from an MFC application Pin
JohnCz6-Mar-08 0:37
JohnCz6-Mar-08 0:37 
Question[Message Deleted] Pin
rjkg2-Mar-08 23:53
rjkg2-Mar-08 23:53 
GeneralRe: List View problem Pin
Amar Sutar3-Mar-08 0:49
Amar Sutar3-Mar-08 0:49 
Questionuse of C / C++ Pin
dj852-Mar-08 23:48
dj852-Mar-08 23:48 
GeneralRe: use of C / C++ Pin
Hamid_RT2-Mar-08 23:55
Hamid_RT2-Mar-08 23:55 
GeneralRe: use of C / C++ Pin
CPallini3-Mar-08 0:09
mveCPallini3-Mar-08 0:09 
GeneralRe: use of C / C++ Pin
Mark Salsbery3-Mar-08 6:23
Mark Salsbery3-Mar-08 6:23 
GeneralOooops Pin
CPallini3-Mar-08 9:16
mveCPallini3-Mar-08 9:16 
GeneralRe: Oooops Pin
Mark Salsbery3-Mar-08 9:23
Mark Salsbery3-Mar-08 9:23 
GeneralCListCtrl checkbox problem Pin
followait2-Mar-08 23:26
followait2-Mar-08 23:26 
GeneralAccessing text from the client area of a win32 window other than EditControl type windows Pin
glyfyx2-Mar-08 23:21
glyfyx2-Mar-08 23:21 
QuestionRe: Accessing text from the client area of a win32 window other than EditControl type windows Pin
David Crow3-Mar-08 3:10
David Crow3-Mar-08 3:10 
GeneralRe: Accessing text from the client area of a win32 window other than EditControl type windows Pin
glyfyx6-Mar-08 10:44
glyfyx6-Mar-08 10:44 
GeneralRe: Accessing text from the client area of a win32 window other than EditControl type windows Pin
Mark Salsbery3-Mar-08 6:34
Mark Salsbery3-Mar-08 6:34 
GeneralRe: Accessing text from the client area of a win32 window other than EditControl type windows Pin
glyfyx6-Mar-08 10:41
glyfyx6-Mar-08 10:41 
GeneralRe: Accessing text from the client area of a win32 window other than EditControl type windows Pin
Mark Salsbery6-Mar-08 11:55
Mark Salsbery6-Mar-08 11:55 
glyfyx wrote:
1 - to maintain an internal text copy of the entire source code and use the caret's x,y point to map into its text-copy to the exact text equivalent of the screen's image of the string;


Doesn't sound appealing but that's pretty much always the way it's done.  Even the edit control does it that way.

With a fixed-pitch font, it's pretty simple.  But try developing a word processor like Microsoft Word!
Just moving the caret through a variable-pitch font could be quite a programming task.

Luckily, the system provides some help with functions like GetGlyphOutline(), GetTextExtentPoint(), GetCharABCWidths() etc.

See Font and Text Functions[^]

Speaking of Microsoft Word....almost all the functionality of Word is available in the later versions of the Rich Edit Control, which
is available for us to use Smile | :)

Mark






Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralA simple threading problem.. Pin
ptr2void2-Mar-08 22:44
ptr2void2-Mar-08 22:44 
GeneralRe: A simple threading problem.. Pin
CPallini3-Mar-08 0:10
mveCPallini3-Mar-08 0:10 
GeneralRe: A simple threading problem.. Pin
Mark Salsbery3-Mar-08 6:49
Mark Salsbery3-Mar-08 6:49 

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.