|
Hi
It is treating closing bracket as the line terminatior.
This can be understood by this example.
Source string: Name (First Name).
Displayed in the RTLREADING: .(Name (First Name
However
Source string: Name (First Name) is Ok.
Displayed in the RTLREADING: .Name (First Name) is OK
What i want is
Source string: Name (First Name).
Displayed in the RTLREADING: .(ame (First Name)
I need suggestion for displayed text in the above stated format.
|
|
|
|
|
piyush kumar tewari wrote: I have displayed a messagebox with MB_RTLREADING flag.
Which is not the same as having right-justified text.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
If you mean to say that the MB_RTLREADING is not the appropriate flag to use, then what can be the other options to try in this situation?
|
|
|
|
|
How about MB_RIGHT ?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
i have converted my VS2005 project into VS2008 and trying to use the CMFCOutlookBar.
but the application crashes while adding the tabs.
on the contrary, if i create a new VS2008 project and use CMFCOutlookBar, everything seem to work fine.
do i have to do any changes in my converted project in order to make the outlookbar work?
thanks
|
|
|
|
|
|
Hi all,
i am developing an application to control an I/O card, read data from a serial port.
i am new to these field of programming.
i am using VC++ as my development language.
can i get some help on articles or ebooks or sample programs for doing the same??
|
|
|
|
|
Subrat Patnaik wrote: i am developing an application to control an I/O card, read data from a serial port.
Does the above mean: "my I/O card reder device is connected to the PC serial port"?
What are you doubts about?
Are you able to use the serial port API, aren't you (see, for instance [^])?
Have you the documentation of the device?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
How about this CP article[^] about programming the serial port?
It's not so difficult - the main difficulty is being sure that the remote end is doing/expecting what you are expecting/doing.
|
|
|
|
|
Have a look here[^].
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Hi,
I am using new MFC Feature pack and trying to create 4 DockablePanes in the child frame. A view is created in each of these dockable panes.When I run the application, only two of the panes (the first and the last one) are only shown and the remaining are hidden. Once I drag the splitters, they are seen and they function normally from then.I am unable to trace the problem. Is there any limit on the number of dockable panes that an application can have? Could anyone let me know as how to solve this problem so that I can view all the panes?
Thanks in advance
Taruni
|
|
|
|
|
I think there is no number limitation. I once created an application with 5 docking panes in the main frame, and with additional 6 panes for each new popup child frame. (exactly like MSOutlook when you open many windows for composing new messages).
Actually you have to check your code in CMainFrame::OnCreate member when you must have set the docking mode, autohide, docking side globally and must have called the ::EnableDocking and ::DockPane for each pane object.
Also check to clean up the registry entry corresponding to your application. Those panes persist their behavior in the registry, and restore the past settings even if you change your source code and run the new version of the program.
|
|
|
|
|
Thank you. I am able to create multiple dockablepanes in the childframe, but I have one more problem. There are four dockable panes in my childframe and the splitter for only the last dockable pane is only seen. When I double click or adjust the last pane's splitter or click on the "Auto Hide" button of any of the dockable panes or close any of the dockable panes, then only all the other panes splitters are seen. Please let me know as how to make the splitters of all the panes visible as soon as run my application.
Taruni
|
|
|
|
|
My code has russian comments in it but they appear unintelligible, like this:
#define DEMO //УРґЛєк¶ЁТе±нКѕУРЧўІб№¦ДЬµД°ж±ѕЈ¬·сФтОЮ
I tried fiddling with the fonts but it didn't work. btw it's possible they're written with the MS-DOS cyrillic charset.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Have you tried this after setting Russian in the "Regional Options" and "Advanced" tabs of "Regional and Language Options" in the Control Panel!
|
|
|
|
|
i tried it but still no luck. actually i changed the option under the 'Advanced' tab (lang for non-unicode programs), the regional options tab was for dates, times, currencies etc.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Have you restarted your computer after making changes in "Regional Settings" section in Control Panel.
|
|
|
|
|
I have application in which I need to show a progress window frm a worker thread.
create another thread for the progress window and launch the dialog. Now I need to change the status text on the progress dilog. I try sendmessage, but that doesn't work.
|
|
|
|
|
Hi Ron,
Can you show us how you are posting the message to the dialog created from the worker thread?
Best Wishes,
-David Delaune
|
|
|
|
|
ThisIsMeRon wrote: I have application in which I need to show a progress window frm a worker thread
Worker thread probably will be busy with some other processing so it's always better to run the progress GUI in different UI thread(Which is able to process the UI messages).
Sharing the MFC Window handle (CWnd or it's derivatives) objects across thread is not safe. So pass the HWND of progress bar UI (Dialog, control or whatsoever) and you can simply Post/Send message using this handle. If you've properly mapped the message in the destination window, it will surely receive it. Please try to post snippets from your code.
-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin
|
|
|
|
|
You should create the progress window in the main UI thread and send/post messages to it from the worker thread, really. Just don't send too many messages. Probably posting is better, otherwise the worker thread is going to wait for the progress message to be processed, which rather defeats the object of having a separate worker thread!
|
|
|
|
|
I got it working..
I created a new thread. In the thread I call Domodal() on progress dialog's global object. Then everytime I need to change some status I just call the Set... member functions using the global object.
|
|
|
|
|
ThisIsMeRon wrote: I have application in which I need to show a progress window frm a worker thread.
Not a good idea. The UI component should be owned by the primary thread. The secondary (i.e., worker) thread should post messages to the primary thread indicating the progress. It's all explained in more detail here.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
I want to make rich edit control detect e-mail automatically.
Same as it detect URLs when we set 'EM_AUTOURLDETECT' style through message .
Is there any style we need to set for this purpose?
Thanks..
|
|
|
|
|
The EM_AUTOURLDETECT Message[^] already detects the mailto URL[^]. If you want to add additional functionality then you will have to implement it yourself. You could probably use a combination of EM_FINDTEXT and EM_EXSETSEL to copy all words with the @ symbol and use a pattern matching algorithm to determine if it appears to be an e-mail address. Upon finding said e-mail address replace the text with a valid mailto URL.
Best Wishes,
-David Delaune
|
|
|
|