Click here to Skip to main content
15,891,993 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to Read a User/System Environment Variable Using c++ Pin
Michael Schubert27-Apr-09 21:50
Michael Schubert27-Apr-09 21:50 
QuestionHow to clean up an object of CMapStringtoString Pin
V K 227-Apr-09 20:40
V K 227-Apr-09 20:40 
AnswerRe: How to clean up an object of CMapStringtoString Pin
Rajkumar R27-Apr-09 21:30
Rajkumar R27-Apr-09 21:30 
QuestionWinCe Screen shot of windows Pin
vijaywithu27-Apr-09 20:29
vijaywithu27-Apr-09 20:29 
AnswerRe: WinCe Screen shot of windows Pin
V K 227-Apr-09 20:47
V K 227-Apr-09 20:47 
AnswerRe: WinCe Screen shot of windows Pin
Rajkumar R27-Apr-09 20:50
Rajkumar R27-Apr-09 20:50 
QuestionHow to add images in visual C++ Library Files Pin
Sakthi.Gs :-)27-Apr-09 20:04
Sakthi.Gs :-)27-Apr-09 20:04 
AnswerRe: How to add images in visual C++ Library Files Pin
KarstenK27-Apr-09 22:50
mveKarstenK27-Apr-09 22:50 
QuestionHow to get the handles of all the windows opened in wince? Pin
ujjawal kumar27-Apr-09 18:59
ujjawal kumar27-Apr-09 18:59 
AnswerRe: How to get the handles of all the windows opened in wince? Pin
Rajkumar R27-Apr-09 19:43
Rajkumar R27-Apr-09 19:43 
GeneralRe: How to get the handles of all the windows opened in wince? Pin
ujjawal kumar27-Apr-09 21:07
ujjawal kumar27-Apr-09 21:07 
GeneralRe: How to get the handles of all the windows opened in wince? Pin
Rajkumar R28-Apr-09 0:52
Rajkumar R28-Apr-09 0:52 
Questionsscanf: cannot convert parameter 1 'LPTSTR' to 'const char *' Pin
xzing27-Apr-09 13:37
xzing27-Apr-09 13:37 
AnswerRe: sscanf: cannot convert parameter 1 'LPTSTR' to 'const char *' Pin
Stuart Dootson27-Apr-09 13:49
professionalStuart Dootson27-Apr-09 13:49 
AnswerRe: sscanf: cannot convert parameter 1 'LPTSTR' to 'const char *' Pin
CPallini27-Apr-09 22:05
mveCPallini27-Apr-09 22:05 
QuestionDoc-View vs Dialog-based app - Menu Item updates Pin
john john mackey27-Apr-09 11:35
john john mackey27-Apr-09 11:35 
AnswerRe: Doc-View vs Dialog-based app - Menu Item updates Pin
led mike27-Apr-09 11:47
led mike27-Apr-09 11:47 
GeneralRe: Doc-View vs Dialog-based app - Menu Item updates Pin
john john mackey27-Apr-09 12:08
john john mackey27-Apr-09 12:08 
QuestionCalculating the Size of Rich Edit "bottomless" control Pin
ForNow27-Apr-09 9:00
ForNow27-Apr-09 9:00 
AnswerRe: Calculating the Size of Rich Edit "bottomless" control Pin
Stuart Dootson27-Apr-09 14:02
professionalStuart Dootson27-Apr-09 14:02 
GeneralRe: Calculating the Size of Rich Edit "bottomless" control Pin
ForNow27-Apr-09 16:37
ForNow27-Apr-09 16:37 
GeneralRe: Calculating the Size of Rich Edit "bottomless" control Pin
Stuart Dootson28-Apr-09 5:12
professionalStuart Dootson28-Apr-09 5:12 
GeneralRe: Calculating the Size of Rich Edit "bottomless" control Pin
ForNow28-Apr-09 9:10
ForNow28-Apr-09 9:10 
GeneralRe: Calculating the Size of Rich Edit "bottomless" control Pin
Stuart Dootson28-Apr-09 10:51
professionalStuart Dootson28-Apr-09 10:51 
I've just added a rich-edit control to a sample MFC dialog app.

In the OnInitDialog handler, I added this:

UpdateData();
richEd.SetEventMask(ENM_REQUESTRESIZE);


Here's the message map entry

ON_NOTIFY(EN_REQUESTRESIZE, IDC_RICHEDIT21, &CmfcdialogDlg::OnEnRequestresizeRichedit21)


Here's the notification handler

void CmfcdialogDlg::OnEnRequestresizeRichedit21(NMHDR *pNMHDR, LRESULT *pResult)
{
   REQRESIZE *pReqResize = reinterpret_cast<reqresize>(pNMHDR);
   // TODO:  The control will not send this notification unless you override the
   // CDialog::OnInitDialog() function to send the EM_SETEVENTMASK message
   // to the control with the ENM_REQUESTRESIZE flag ORed into the lParam mask.

   // TODO:  Add your control notification handler code here

   *pResult = 0;
}</reqresize>


I request the resize with

richEd.RequestResize();


in a 'button click' event handler.

My EN_REQUESTRESIZE handler gets called.

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

GeneralRe: Calculating the Size of Rich Edit "bottomless" control Pin
ForNow28-Apr-09 11:17
ForNow28-Apr-09 11:17 

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.