Cursor Pos and Font size
-
hi, i need to have the right cursor position , does not matter which font size is being used, for example if the ::GetCaretPos(lpCursorPos) gave me lpCursorPos-> y = 4 when the font size was 10 it must also give me 4 if the font size is changed to 72, please help. Thanks.
-
hi, i need to have the right cursor position , does not matter which font size is being used, for example if the ::GetCaretPos(lpCursorPos) gave me lpCursorPos-> y = 4 when the font size was 10 it must also give me 4 if the font size is changed to 72, please help. Thanks.
Ok, so what's the problem?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
-
Ok, so what's the problem?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
-
the problem when i change the font size, i get another y coordinate and i need to have the same coordinate for all font size from 8 to 72 , is this clear now?
Have you tried
GetSel()
?"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
-
Have you tried
GetSel()
?"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
i am using CRichEidtView Class it does not have GetSel(), i need to get the font hight which is NOW used to display the text and every time this font size changed i must get the the actual font size , textMetric may be help but i need to initalize a CClientDC or CDC , in CRichEditView Class this diffecult.
-
i am using CRichEidtView Class it does not have GetSel(), i need to get the font hight which is NOW used to display the text and every time this font size changed i must get the the actual font size , textMetric may be help but i need to initalize a CClientDC or CDC , in CRichEditView Class this diffecult.
richEditView.GetRichEditCtrl().GetSel
«_Superman_» I love work. It gives me something to do between weekends.
-
richEditView.GetRichEditCtrl().GetSel
«_Superman_» I love work. It gives me something to do between weekends.
-
i am using CRichEidtView Class it does not have GetSel(), i need to get the font hight which is NOW used to display the text and every time this font size changed i must get the the actual font size , textMetric may be help but i need to initalize a CClientDC or CDC , in CRichEditView Class this diffecult.
susanne1 wrote:
i am using CRichEidtView Class it does not have GetSel()...
Sure it does.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons