Click here to Skip to main content
15,909,373 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSuper Big Problem with SetWindowsHookEx function!!! Pin
10-Apr-02 22:11
suss10-Apr-02 22:11 
GeneralRe: Super Big Problem with SetWindowsHookEx function!!! Pin
Lakitu11-Apr-02 23:26
Lakitu11-Apr-02 23:26 
GeneralSelf-Destructing Executable Pin
Serge Baltic10-Apr-02 21:16
Serge Baltic10-Apr-02 21:16 
GeneralRe: Self-Destructing Executable Pin
Rickard Andersson2010-Apr-02 22:14
Rickard Andersson2010-Apr-02 22:14 
GeneralRe: Self-Destructing Executable Pin
Alexandru Savescu10-Apr-02 22:18
Alexandru Savescu10-Apr-02 22:18 
GeneralRe: Self-Destructing Executable Pin
Prem Kumar11-Apr-02 1:03
Prem Kumar11-Apr-02 1:03 
GeneralAccessing CEdit Member Functions Inside CEditView ::MFC Pin
valikac10-Apr-02 16:49
valikac10-Apr-02 16:49 
GeneralRe: Accessing CEdit Member Functions Inside CEditView ::MFC Pin
Alex Cramer10-Apr-02 17:49
Alex Cramer10-Apr-02 17:49 
Do you want to read MSDN again?

CEditView::GetEditCtrl
CEdit& GetEditCtrl( ) const;

Return Value

A reference to a CEdit object.

Remarks

Call GetEditCtrl to get a reference to the edit control used by the edit view. This control is of type CEdit, so you can manipulate the Windows edit control directly using the CEdit member functions.

! WARNING Using the CEdit object can change the state of the underlying Windows edit control. For example, you should not change the tab settings using the CEdit::SetTabStops function because CEditView caches these settings for use both in the edit control and in printing. Instead, use CEditView::SetTabStops.

Example

CMyEditView::OnInitialUpdate()
{
// get the edit control and set some initial properties for it
CEdit& theEdit = GetEditCtrl();

// adjust the left margin without changing the right margin
DWORD dwMargins = theEdit.GetMargins();
theEdit.SetMargins(20, HIWORD(dwMargins));

// only accept 10k of text
theEdit.SetLimitText(10 * 1024);
}


GeneralRe: Accessing CEdit Member Functions Inside CEditView ::MFC Pin
valikac10-Apr-02 17:50
valikac10-Apr-02 17:50 
GeneralRe: Accessing CEdit Member Functions Inside CEditView ::MFC Pin
Alex Cramer10-Apr-02 18:25
Alex Cramer10-Apr-02 18:25 
GeneralClasses in DLL Pin
10-Apr-02 16:44
suss10-Apr-02 16:44 
GeneralRe: Classes in DLL Pin
10-Apr-02 17:36
suss10-Apr-02 17:36 
GeneralRe: Classes in DLL Pin
Gunnar Bolle10-Apr-02 23:44
Gunnar Bolle10-Apr-02 23:44 
GeneralRe: Classes in DLL Pin
jan larsen11-Apr-02 2:17
jan larsen11-Apr-02 2:17 
GeneralRe: Classes in DLL Pin
Jack Hui11-Apr-02 5:30
Jack Hui11-Apr-02 5:30 
Generalheap, stack Pin
NicholasCougar10-Apr-02 16:25
NicholasCougar10-Apr-02 16:25 
GeneralRe: heap, stack Pin
Paul M Watt10-Apr-02 16:35
mentorPaul M Watt10-Apr-02 16:35 
GeneralRe: heap, stack Pin
James R. Twine12-Apr-02 10:12
James R. Twine12-Apr-02 10:12 
GeneralRe: heap, stack Pin
Ravi Bhavnani12-Apr-02 10:49
professionalRavi Bhavnani12-Apr-02 10:49 
GeneralRe: heap, stack Pin
James R. Twine12-Apr-02 15:56
James R. Twine12-Apr-02 15:56 
GeneralFormatting rebars Pin
funbag10-Apr-02 16:16
funbag10-Apr-02 16:16 
GeneralRe: Formatting rebars Pin
wangyiming12-Apr-02 3:47
wangyiming12-Apr-02 3:47 
GeneralRe: Formatting rebars Pin
wangyiming12-Apr-02 3:50
wangyiming12-Apr-02 3:50 
Generalstatic in class Pin
NicholasCougar10-Apr-02 15:46
NicholasCougar10-Apr-02 15:46 
GeneralRe: static in class Pin
Christian Graus10-Apr-02 16:06
protectorChristian Graus10-Apr-02 16:06 

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.