|
Sorry, but those are really your only two choices. If you want to customize the frame then you're responsible for drawing the frame in its entirety. Only when you draw ontop the frame can you get away with not drawing the whole non-client area.
You don't, however, have to draw every ornament. Just be sure to pass the notification message (WM_NCPAINT ) back - modified or not - to the default window procedure (call base.WndProc inside your override). To chance the size of a frame is a major change, though.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|
|
Hi all,
I have two questions on programming MS Outlook where I want
to get and send email from the MS Outlook.
1. What are the differences between programming the Outlook Com object by
C# and by programming the MAPI ?
2. Are there any difference in programming the MS Outlook and Outlook Express?
Thanks
Patrick
|
|
|
|
|
1. The Outlook OM is specific to Outlook. MAPI is the Mail Application Programming Interface and is implemented by MAPI clients that may or may not contain all the functionality of Outlook (like Calendar, Tasks, etc.), since it is, after all, the Mail API.
2. It's an entirely different code base. OE only does mail while MS Outlook doesn't do newsgroups (NNTP). The object model is completely different, and OE really isn't that extensible. It's meant to be a lightweight mail client (currently supporting POP3, IMAP, and HTTPMail), while Outlook is more of a solution and can support POP3, IMAP, HTTPMail, Exchange, and provides for pluggable protocols. Besides both being mail clients and sharing a common name, they really have nothing in common.
For specifics, you should use OE or another NNTP client and search for relevent newsgroups on news://msnews.microsoft.com.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|
|
Hi Heath,
Thx for ur reply.
I need to programming both on Outlook and outlook express.
For outlook, there is no problem. But for outlook express, it
seems that i need to use c++ to program the MAPI to get the email
in the folders of the outlook express. Is there any C# way to program
outlook express ?
Thanks
Patrick
|
|
|
|
|
You should really use MAPI for both Outlook and OE. Why develop two different codebases to do the same thing when you don't have to? It also poses an installation and maintanence hastle.
The problem is, there's two types of MAPI. The first is the original and exposes an automation interface (which means it's scriptable). Because it's scriptable, it was used by email worms. So Microsoft developed Extended MAPI which has no automation interface and requires that you use native bindings a la C++.
With .NET and C# you can actually use both. You can use MAPI but Outlook will warn when trying to access folders. You might have seen this before. Starting with Outook XP, IIRC, it prompts to allow access for a set number of minutes (or only for the current call).
Using Extended MAPI requires that you P/Invoke native functions.
You can find articles about doing both here on CodeProject as well as MSDN[^]. Just do a search.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|
|
I would like to know how to convert from integer to a string, actually I would like to know how to implement the function 'itoa()'.
Please provide C code.
Thanks.
|
|
|
|
|
|
Thank you but I need the code without calling any library function.
|
|
|
|
|
hi,
int A=8;
string b=A.ToString();
And i am not getting what you mean to explain through this 'itoa()'. Will explain this ?
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
Thank you but I need the code without calling any library function.
|
|
|
|
|
First, I don't think that is possible. You are going to have to call some part of the .NET Framework at some point.
Second, why don't you want to call "any library function"?
Do you want to know more?
Not getting the response you want from a question asked in an online forum: How to Ask Questions the Smart Way!
|
|
|
|
|
|
hey guys does any one here knows hoe to make RAM drive Programmatically ???not by wizard
thx alot for you time
|
|
|
|
|
Hi i had a problem this intialization control on form.
Suppose i had an ActiveX control on my dialog.And i had an
RadioButton(with Checked = TRUE)onto dialog also.For this button i had ChackedChange event handler, which commit an action with those ActiveX control.But when form initialized this event arised, but object still not created, and cause of i get access violation!!!
Rather, the control created on this row:
MyObjAx = new MyObjAx();(or may be properly say begin created???)Into InittializeComponent method,after this routine arised event for my RadioButton handler,but there is i see that this component still not created.One had right pointer,but in debug window i can see that fields of one not initialized.
How i can avoid this stumble???
THANK.
|
|
|
|
|
hi,
The reason is because you are trying to access your activexcontrol before initializing the control.
You can do one thing. Just remove your radiobutton's ChackedChange event handler declaration and add it after creating the ActiveXcontrol.
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
hi
I suppose activeXcontrol initialized in string
Me.MyObjAx = new MyObjAx();
And this routine invoke before ChackedChange event handler.
Is it so???
THANK
|
|
|
|
|
hi,
You wrote some code on changeevent handler to do something with your activeXobject. right. But you are trying to use that handler before initalising that object. Add changeevent hadler after creating object of your acticeXobject.Ok.
Did you got what i am trying to explain ?
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
Hi again.
When exactly control initialized ???Did you know???
THANK
|
|
|
|
|
Hello all.
I'm having a problem letting one form inherit another. I have a simple wizard implementing the base functionality and then I have a couple of wizards that inherit from the base wizard, where I add the necessary textboxes, comboboxes and so on. I saw it called "Visual inheritance" at one place...
At first it worked relatively well but now it is all a mess. My problem is this: if I add for example a textbox to an inherited form in the designer and I change a couple of properties on the textbox (AllowReturn set MultiLine to true, set some default text e.t.c.), I save the form (usually goes well) and then I compile and suddenly the textbox looses all the properties I have set -except for the ID, and moves up to the upper left corner of the form!?! Or I don't compile but I add an eventhandler for some other control, goes into the code and then returns to the designer and KABOOM! The textbox is in the upper left corner without the properties I gave it!
What have I missed? I had minor problems before, that the controls occasionally lost the properties overriding the basewizard properties, but not like this. I don't know if it is related but it seems that since I moved to WinXP servicepack 2 about a week ago, it has stopped working alltogether.
Any ideas? Getting a bit desperate as my project is due soon!
Thanks
/EnkelIk
|
|
|
|
|
hi,
This may not the reason but still you can check the Modifiers property of the object's that you are trying to access. Change it to public. Cause you are changing the values after inheriting the object.
Change the property Modifiers and set value true.
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
Thanks!
That may very well be a solution to some of my problems; I'll try that.
I restarted my computer and that helped on the most frustrating thing (the textbox now keeps it's size even after saving and compiling the project), so maybe I just really need to reinstall my computer, but hopefully your tip can solve the other properties being lost (which I have had since I started with the inherited forms).
Thanks
/EnkelIk
|
|
|
|
|
Hi,
I created a scheduler for make some tasks every days.
I used a treeview.
SCHEDULER
|->MONDAY|-> TASK1 : HH:MM:SS
| |-> TASK2 : HH:MM:SS
|->TUESDAY ...
...
Now I can used this interface if I have only the start TIME.
But today, I would like to used START TIME and STOP TIME and in this view the interface is very complex.
I looking for an interface that I can select like calendar in outlook with my mouse or keyboard to determinate the start and stop time.
Best regards
youssef
|
|
|
|
|
Use a datagrid to display all the schedule details.
Kev
|
|
|
|
|
hi,
We have lot of articles in codeproject which help you to customize the experience of your treeview control. Please search for 'treeview' here in codeproject.
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
Have you found a calendar for your application? I'm looking for the same!
Thank you!
Jordi
"Catalonia is not Spain"
|
|
|
|