|
Does anybody have an example of how we can get an Outlook Bar Control in MFC ?
Thanks,
Claude
|
|
|
|
|
It's very buggy so I suggest taking a careful look at all the comments with suggested fixes, but once you get it stable enough with the features enabled that you like, I'd use this:
http://codeguru.earthweb.com/controls/outbar.shtml
Matt Philmon
|
|
|
|
|
Have you looked at the WTL version here?
http://www.codeproject.com/useritems/atloutlookbar.asp
cheers,
Chris Maunder (CodeProject)
|
|
|
|
|
Yes, but I want a version with MFC only.
However I don't know WTL.
Some one gives me the address of CodeJock. They have a free area with an OutLook Bar Control.
I will try this tomorrow.
Thanks
Claude
|
|
|
|
|
I am creating a demo program that will run in a loop. the problem is that i my code runs too fast and you can not see anything happen.
is there a delay function availble?
|
|
|
|
|
I'm not sure, but what about the Sleep() function?
|
|
|
|
|
You can use the SetThreadPriority Function using the value THREAD_PRIORITY_LOWEST in the Priority parameter.
But, Also you can use the Sleep function.
Cheers!!!
Carlos Antollini.
|
|
|
|
|
Sleep(ms to sleep for) or:
void SleepAndPump(DWORD dwMSecs)
{
MSG Msg;
DWORD dwTime = GetTickCount() + dwMSecs;
while (GetTickCount() < dwTime)
{
if(PeekMessage(&Msg, 0,0, PM_REMOVE))
DispatchMessage(&Msg);
Sleep(500);
}
Which works in a GUI to allow move, paints etc messages to still execute, and will also slow things down for you for the number of msecconds. Check on PeekMessage though - this was all out of memory, and I'm not sure if PeekMessage's parameters are correct. Just don't call this function with any sleep time larger than 2 billion msecs, or the GetTickCount clock will wrap around, and you may never get out.
Darin Rousseau
http://www.rinlex.com/fssi/development/
darin@rinlex.com
|
|
|
|
|
the sleepandpump is perfect for what i need, thank you. but my program is not closing properly. the programs interface closes but still stay open in the task manager. could it be stuck in the message loop. i can not find anything in peekmessage that would terminate the loop.
|
|
|
|
|
You may try checking that the window still exists or is visible (IsWindow or IsWindowVisible). If not, break out of the loop and/or exit the program.
Regards,
Alvaro
|
|
|
|
|
|
Tomasz, the yours is the best idea that I listen in all day!!!
Is true, Write your demo in Visual Basic!!!!
Cheers Tomasz!!!!
Happy Friday.
Carlos Antollini.
|
|
|
|
|
I'll need to write some documentation about aircraft autopilot controller. I need some idea about its requirment/specification.
Any idea is appreciated.
Thank you.
|
|
|
|
|
I can send you something of docuementation, with a lot of tips and templates.
If you want it , please Let me Know.
I can send you a Zip file with that information. The only problem is that the zip have 50Mb aproximidiatly.
Cheers!!!!
Carlos Antollini.
|
|
|
|
|
Can you setup a ftp or something similar? I am very interested. I can't host a ftp because I am using school's computer.
Thank you!
|
|
|
|
|
I'm, sorry I can't do that.
But I will try to send some links.I will ask to some of the Analyst of my Company if somebody Knows any site.
Regards!!!
Carlos Antollini.
|
|
|
|
|
Hello,
Does anyone know if there are command line switches for mailto: ?
For example.. If you go to start>run> and type mailto:blah@blah.com it will open your default email program and start a email message to blah@blah.com.. I’m trying to figure out if you can auto-fill the subject and contents of this email with switches. I’m not sure if this is even possible. I know it can be done through cgi etc.. but I wanted to know if it's possible to do from the start>run..
Thanks,
Rob
|
|
|
|
|
|
|
|
I have a Property Sheet that contains four instances of a Property Page - which has a RichEdit Control, PushButton (Save) and a checkbox.
Problem is, whenever any Property Page Tab is displayed, all of the text in the Richedit Control is always selected.
In the RichEdit control, I did not set NoHide. Nor do I call SetOptions() or HideSelection() within the code.
(Actually, I tried calling HideSelection() but it had no effect).
I also reset the selection by calling SetSel(0,1) at every possible place e.g. OnInitDialog(), OnSetActive().
So, is there a way to prevent the text in the control from always being Selected when the Page becomes Active?
Thanks,
Bryan.
|
|
|
|
|
For anyone who has this problem.
For some reason, when the Paint handler is entered, the RichEditControl is always set to select all of the text.
By re-setting the selection on OnPaint it will cause the text to be de-selected when displayed.
Bryan.
|
|
|
|
|
I've a C program that returns a long.
Its parameters are an string and a long.
I want to create a dll and use it in a Visual Basic Program.
|
|
|
|
|
1. Run AppWizard in VC 6.0
2. Choose New Project
3. Pick Win32 Dynamic Library.
4. Replace the sample function with your code.
5. Compile it
It's that simple
I vote pro drink
|
|
|
|
|
If you use the automatic VC tool to build wizards, how do you gain control over the next, back and finish button. I need to enable or disable them based on the data entered into my dialog boxes, but it seems like I can't find the IDs associated with every item. And an additional problem is that you don't even see these buttons in the resources on the dialogs.
|
|
|
|