Click here to Skip to main content
16,016,425 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Geting width of my CListbox Pin
Tom Archer4-May-02 13:23
Tom Archer4-May-02 13:23 
GeneralRe: Geting width of my CListbox Pin
Michael Dunn4-May-02 14:04
sitebuilderMichael Dunn4-May-02 14:04 
GeneralRe: Geting width of my CListbox - Thx Pin
4-May-02 14:45
suss4-May-02 14:45 
GeneralRe: Geting width of my CListbox - Thx Pin
Nish Nishant4-May-02 14:59
sitebuilderNish Nishant4-May-02 14:59 
GeneralRe: Geting width of my CListbox - Thx Pin
4-May-02 15:15
suss4-May-02 15:15 
GeneralRe: Geting width of my CListbox - Thx Pin
Tom Archer4-May-02 15:26
Tom Archer4-May-02 15:26 
GeneralRe: Geting width of my CListbox - Thx Pin
4-May-02 16:10
suss4-May-02 16:10 
GeneralSetting Permanent Margins CEditView :: MFC Pin
valikac4-May-02 12:31
valikac4-May-02 12:31 
Hi.

Is there a way to set the margins in a CEditView view class to stay permanent? In the program I am working on, I can set the margin in OnEnSetFocus, however, if the user starts a new document, the margin resets to its default. The default margin makes it difficult for the user to see where the text being since it is so close to the left wall of the frame.

Here is the code I use to set the margin in OnEnSetFocus:

-----
void CMyAppView::OnEnSetfocus()
{
CEdit &rE = GetEditCtrl();
DWORD dwMargins = rE.GetMargins();
rE.SetMargins(3, HIWORD(dwMargins))
...
}
-----

Thanks,
Kuphryn
GeneralAccesing other programs Pin
4-May-02 11:23
suss4-May-02 11:23 
GeneralRe: Accesing other programs Pin
Gabriel.P.G4-May-02 13:12
Gabriel.P.G4-May-02 13:12 
GeneralRe: Accesing other programs Pin
Nish Nishant4-May-02 14:58
sitebuilderNish Nishant4-May-02 14:58 
GeneralUnresolved External Symbol :( Pin
Derek Lakin4-May-02 11:11
Derek Lakin4-May-02 11:11 
GeneralExporting Classes Pin
Peter Liddle4-May-02 10:45
Peter Liddle4-May-02 10:45 
GeneralRe: Exporting Classes Pin
Paul M Watt4-May-02 12:17
mentorPaul M Watt4-May-02 12:17 
GeneralRe: Exporting Classes Pin
Tom Archer4-May-02 13:58
Tom Archer4-May-02 13:58 
GeneralOverrides using Properties window in VC++ .NET Pin
4-May-02 9:31
suss4-May-02 9:31 
QuestionWhere should I post my TurboC++ / ASM / BIOS question? Pin
Maxwell Chen4-May-02 8:38
Maxwell Chen4-May-02 8:38 
GeneralArray of pointers Pin
Rohde4-May-02 8:16
Rohde4-May-02 8:16 
GeneralRe: Array of pointers Pin
Nish Nishant4-May-02 8:29
sitebuilderNish Nishant4-May-02 8:29 
GeneralRe: Array of pointers Pin
Paul M Watt4-May-02 9:22
mentorPaul M Watt4-May-02 9:22 
GeneralRe: Array of pointers Pin
Maxwell Chen4-May-02 9:33
Maxwell Chen4-May-02 9:33 
GeneralRe: Array of pointers Pin
Christian Graus4-May-02 11:34
protectorChristian Graus4-May-02 11:34 
GeneralRe: Array of pointers Pin
Maxwell Chen4-May-02 20:57
Maxwell Chen4-May-02 20:57 
GeneralSetting Up Option Parameters :: C++ Pin
valikac4-May-02 7:19
valikac4-May-02 7:19 
GeneralRe: Setting Up Option Parameters :: C++ Pin
Ravi Bhavnani4-May-02 7:27
professionalRavi Bhavnani4-May-02 7:27 

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.