|
EditBox (CEdit in MFC), created with the multiline flag...
see the properties box in design mode into Visual Studio
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Is there any method to get the line height in EditBox?
|
|
|
|
|
line height ?
you want to count 3 lines or what ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
I have an idea to dynamically set the window pos to center.
If I have the line height then can calculate the window pos.
And also set the visible line count to 3.
|
|
|
|
|
Nishad S wrote:
I have an idea to dynamically set the window pos to center.
If you are wanting to center the actual edit control within its parent, you'll need to use MoveWindow() or SetWindowPos() . If you are using MFC, check out the CWnd::CenterWindow() method.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
This sounds like an owner drawn control to me, unless the richedit box has a property to centre the text.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
i guess u want m_Text.LineLength() ??
V
|
|
|
|
|
You can use MFC CEdit::GetLineCount() or the Win32 Message EM_GETLINECOUNT to get the number of lines.
--> . If the number of lines is three or less it should come the center of the dialog vertically.
I can't understand your question properly. do you meant to say if the number of lines are 3 or less, you don't want any scrollbar?
" Action without vision is only passing time,
Vision without action is merely day dreaming,
But vision with action can change the world "
- Words from Nelson Mandela
Thanks & Regards,
Gopalakrishnan
|
|
|
|
|
It sounds like you need to use the ES_CENTER and ES_MULTILINE styles.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
Hello there guys.
Using VC++/MFC, I successfully created a new html file, but when the application was launch, an empty window appeared. The html created didn't display on that window.
For more details:
Inside of the MyAppView.cpp ::OnInitialUpdate(), a function is called that will create a html file(for e.g. CreateHtml("./test.htm") )where "test.htm" is the htm file created. Then Displaying the html using Navigate("file://..../test.htm"); I'm wondering why the window is empty. I check the test.htm file created and it's not empty. I also tried Navigate2("file://...../menu.htm") and still empty window was display...
Also, I tried passing it to an existing URL like "http://www.codeproject.com" and there's no problem with it.
I'd like to ask if I miss something there?. Is there's a way that the created html file is the display on the window?
Thanks..
With great power comes a great responsibility.
|
|
|
|
|
I have re-created another project that had similar functions. It worked correctly.
Please, try to open created HTML files by IE to check whether that files display well or not.
Contact me if you want to get a working sample project by email.
|
|
|
|
|
Thanks for the reply.
I already try to open the created HTML files by IE and also by Mozilla and it display fine. That's why I'm wondering how I can deal with it.
Please... please... help me with this matter.
How can I contact you?
Thanks a lot....
With great power comes a great responsibility.
|
|
|
|
|
Hello Friends
I have developed an application in which I want to play my *.WAV, *.MP3 or any other audio file.
How to achieve this ? Any example ?
Regards,
Amarelia Maehsh
Gujarat
India
|
|
|
|
|
Embedd the Windows Media Player in your app or use DirectShow.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Is it possible to view the Japanese text in the dialog box editor itself?
|
|
|
|
|
Try to use APPWZJPN.DLL for your project. Menubars, Dialogs, etc. will display in Japanase. If APPWZJPN.DLL is not existed in your "Microsoft Visual Studio\Common\MSDev98\Bin\IDE" folder, copy it from the CD installer of Visual C++. Or just google it and put it on that folder.
Hope it will helps.
With great power comes a great responsibility.
|
|
|
|
|
Ok. I will try in that way.
Thanks for your suggestion.
|
|
|
|
|
Hello All,
How can I give mulitlingual support to my dialogs?
Thank you.
- NS -
|
|
|
|
|
|
In my case I found that the best solution was the creation of several XML files (one for each language needed) with all the text needed referenced by a unique id and call each text from within the code like: GetMessage(int id).
then, the only hardcoded part is the id of the message, not the whole string.
Marc Soleda.
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
Hi,
Is there a free downloadable C++ Class design tool.
I am not looking a complex tool like UML tools. Simple tool which can represent the class and the properties in form of a diagram..
Thanks,
Shiva P
|
|
|
|
|
What about MS Visio? It's not free but it comes with Office packages and it meets your goals.
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
This message will not be sent, when i use SetItemText to change the item
text.
I want the parent to be notified when SetItemText is called, because I don't call SetItemText in CListCtrl's parent.
|
|
|
|
|
followait wrote:
when i use SetItemText to change the item
text.
Look for LVN_ITEMCHANGED or LVN_ITEMCHANGING message
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
I tried, but it didn't work.
There is no LVN_ITEMCHANGED or LVN_ITEMCHANGING when SetItemText is called.
|
|
|
|