|
fangzj wrote:
But I just want to know it is possible to change the line length limit of a CEdit control in multi-line style.
How are you verifying that each line of a multiline edit control is limited to 1024 characters?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
That is a very clear process:
In a dialog, put an edit control, tick multiline, horizontal scroll and auto hscroll options.
Then run the dialog app, in the edit control when you enter any character, in my test with '-', the line wraps another line if total number is great than 1024.
In fact, in any CEdit or CEditView app, like windows notepad.exe, the line wraps another line if total number is great than 1024.
|
|
|
|
|
That limit is apparently imposed by the Edit window class. Testing shows that the RICHEDIT window class does not share the same limitation. Would there be a fundamental reason to therefore not use CRichEditCtrl ?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
I decide to write my own edit control from CWnd.
Ask this question, I just want to make clear that the Edit window class doe s have this limit. Microsoft should write it in the document, or update in the new version release.
Any way, Thanks!
|
|
|
|
|
fangzj wrote:
Ask this question...
What question?
fangzj wrote:
I just want to make clear that the Edit window class doe s have this limit.
Thanks for agreeing with me.
fangzj wrote:
Microsoft should write it in the document...
Agreed.
fangzj wrote:
...or update in the new version release.
Since it is not a bug, what's to update, especially since there is a work around (i.e., use the rich edit control)?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
hii..
how can i get the id's of resources of an exe ...
i want to pass the id's to the Find Resource function..
regards,
kedar.
|
|
|
|
|
I guess ResHacker will od the job:
www.users.on.net/johnson/resourcehacker[^]
All the label says is that this stuff contains chemicals "... known to the State of California to cause cancer in rats and low-income test subjects." Roger Wright http://www.codeproject.com/lounge.asp?select=965687&exp=5&fr=1#xx965687xx
|
|
|
|
|
where can I find multiple page internet explorer souce code?
thank u
|
|
|
|
|
I have a SDI project which has two views,left is a treeview,right is a list view.I want to place only one tabctrl at the botom of the two views which can over control each of the two views.How can I place the TabCtrl in the mainframe?
Thanks everyone!!!
|
|
|
|
|
Thank you all all the same!
I have solved the problem.
I used a ReBar,just created at the bottom.
|
|
|
|
|
hi all
I am maintaining an old app which works fine in 2000 and 98'
there is a printing issue which is not consistant across Windows XP boxes. On some it works fine and others it doesnt - on these "bad" ones the print preview has text is "off the page" and text is correct just too wide and large !
but as i say, on other XP pc's there is no problem and its all cool
On windows 2k and 98 there is no problem.
I figure this isnt the first time this problem has been encountered...
Is there a simple fix to make it work on all XP/2k/98 boxes or do i need to get down and dirty with the code and detect that i'm running XP and do appropriate things...also why does it work on some pc's and not others...is it a driver type issue?
cheers
Bryce
---
To paraphrase Fred Dagg - the views expressed in this post are bloody good ones.
--
Publitor, making Pubmed easy.
http://www.sohocode.com/publitor
Our kids book :The Snot Goblin
|
|
|
|
|
HI , I have already build application , now i am doing chaning in it.
I have added new items in Menu ,( say in File menu I added "Show Labels" item ).
But at runnig the application it shows "Show Labels" item Inactive ..
I checked its properties .. its all OK .
So where and how can I show it as Active item in SDI application.
thanx.
Regards.
|
|
|
|
|
Add a handler for your menu item. This should activate it from your menu.
I Dream of Absolute Zero
|
|
|
|
|
Yes it is active .. if i add handler but how can i inactive it now..
When after a specific action how can I make it Inactive....
I Mean to say that by programming ..
thanx
Regards.
|
|
|
|
|
well in the same way that you can add an event handler for your menu item, you can also add a UI (user interface) handler.
It uses the ON_UPDATE_COMMAND_UI macro.
To enable or disable your item, you would then call the appropriate method in the given CCmdUI variable.
for example:
void CMainFrame::OnUpdateViewHello(CCmdUI *pCmdUI)
{
pCmdUI->Enable(m_bEnable);
}
I Dream of Absolute Zero
|
|
|
|
|
Can any body tell me how to use Picture Control present on controls toolbar in VC6 and also animate control?
|
|
|
|
|
|
I have designed the database in MS SQL server and I am using QT library. I'm using VC++ as the compiler but I am not able to connect to the database.
In the connect method, I have created a Pointer to the database which is not getting initialised.
|
|
|
|
|
i tried some times but all failed.my codes below:
================================
CInstDllApp theApp;
CWaitDlg *m_waitdlg=NULL;
extern "C" __declspec(dllexport) int SDUnloadDriver()
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
AfxSetResourceHandle(theApp.m_hInstance);
int res;
if (m_waitdlg==NULL)
{
m_waitdlg=new CWaitDlg;
m_waitdlg->Create(IDD_DIALOG,NULL);
m_waitdlg->ShowWindow(SW_SHOW);
}
else
{
m_waitdlg->ShowWindow(SW_SHOW);
}
AfxSetResourceHandle(AfxGetInstanceHandle());
Sleep(1000);
if (m_waitdlg!=NULL)
{
m_waitdlg->DestroyWindow();
delete [] m_waitdlg;
m_waitdlg=NULL;
}
return res;
}
in this code i can created the dialog,and show the dialog without the controls on the dialog,and can not drag the dialog,maybe without message deal,how to solve this problem?
thanks
|
|
|
|
|
m_waitdlg->ShowWindow(SW_SHOW);
}
AfxSetResourceHandle(AfxGetInstanceHandle());
-- There is no message processing loop here at all...
Sleep(1000);
-- There is no message processing loop here at all...
if (m_waitdlg!=NULL)
{
m_waitdlg->DestroyWindow();
Because the thread showing the window, presumably the only thread in program, is not processing messages.
|
|
|
|
|
i know,but how to solve this problem,i do not know how to do this?
thanks,can you give me some sample code or articles?
best regards
|
|
|
|
|
the code is:
COleDateTime time2;
time2.SetDateTime(2005,2,2,10,54,12);
CString str = time2.Format(_T("%H:%M:%S %B %d, %Y"));
when the function returns,the error is:
" module:
file:i386\chkesp.c
line:42
the value of esp was not properly saved across a functin cail. this is usually
a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention "
But in release mode ,it is all right!
why?How can I solve the problem,that is "convert a date type variant to string"?
Thanks!
|
|
|
|
|
stick04 wrote:
when the function returns,the error is:
" module:
file:i386\chkesp.c
line:42
Have you stepped into the Format() method to see what statement produces the error?
stick04 wrote:
But in release mode ,it is all right!
Have you compared compiler options between debug and release mode?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Hi!
I have a problem with GDI.
I want draw a rectangle to memDC, then rotate it, last draw it to Screen. But when I draw it to memDC, it's single color.
code (draw it to memDC)
CDC DC;
DC.CreateCompatibleDC(pDC);
CBitmap bmTempBitmap;
bmTempBitmap.CreateCompatibleBitmap(&DC1,1024,768);
DC.SelectObject(bmTempBitmap);
CBrush brush;
brush.CreateSolidBrush(RGB(100,100,100));
CBrush* pOldBrush = (CBrush*)pDC->SelectObject(&brush);
CPen* pOldPen = (CPen*)pDC->SelectStockObject(NULL_PEN);
DC.Rectangle(&rcObj);
.... Rotate Rectangle....... copy to pDC, then write to screen.
Help me! Thank you very much.
|
|
|
|
|
Why would it be anything but single color ? GDI+ will allow you to draw bitmaps with textures, etc.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|