|
How can I change size of DateTimePicker Controls at runtime ?
These are not members of COleDateTime:
m_StartTime.GetClientRect( rect);
m_StartTime.MoveWindow( rect);
Cheers
Hans
|
|
|
|
|
I´d like to change window font styles at runtime. I created a dialog with a few DateTimePicker controls but I cannot change their fonts. All other controls ( ListBox etc. ) support this:
GetFont()->GetLogFont(&LogFont);
LogFont.lfHeight = 16;
NewFont.CreateFontIndirect(&LogFont);
// Set Font Size
m_MyControl.SetFont(&NewFont);
But what about DateTimePicker controls ?
Cheers
Hans
|
|
|
|
|
|
Hi Friends
I am writing a profile string using WriteProfileString , I can read it using getProfileString,
Problem is I want to know were it is written in system registry, Platfrom is windows 2000 server.
Thanks
Gau
Gaurika Wijeratne // www.gaurika.com //
|
|
|
|
|
I think:
HKEY_CURRENT_USER\Software\MyCompany\MyApp\Settings
Mazy
"The path you tread is narrow and the drop is shear and very high,
The ravens all are watching from a vantage point near by,
Apprehension creeping like a choo-train uo your spine,
Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
|
|
|
|
|
I think this is correct:
HKEY_CURRENT_USER\Software\MyCompany\MyApp\Local AppWizard-Generated Applications
Mazy
"The path you tread is narrow and the drop is shear and very high,
The ravens all are watching from a vantage point near by,
Apprehension creeping like a choo-train uo your spine,
Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
|
|
|
|
|
I've seen couple of messages here that discuss the VC.NET and Managed C++. What I understod I can't programm in VC.NET without using Managed C++??
I don't know a s*** about Managed C++ and don't know what it is too...
Will I survive VC.NET without any knowledge in Managed C++???
------------------------------------
Rickard Andersson, Suza Computing
ICQ#: 50302279
I'm from the winter country SWEDEN!
------------------------------------
|
|
|
|
|
In the same way that you can use C++ without knowing anything about namespaces or templates, you can use VC++.NET without ever using MC++. I have no intention of ever using it, although I also admit to doing next to no C++ in .NET, simply because I focus on learning C# at home. When I have used C++, I've used it for CP articles, and it's a matter of public record that none of them compile to the CLR, i.e. they do not use Managed C++.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"But there isn't a whole lot out there that pisses me off more than someone leaving my code looking like they leaned on the keyboard and prayed that it would compile.
- Jamie Hale, 17/4/2002
|
|
|
|
|
Visual C++ .NET still allows you to program unmanaged (native win32) apps. You've still got MFC and STL and all the other fun bits you've always had.
In fact VC++.NET is the *only* .NET language that allows you to write native apps, or to write native and managed code within the same executable image.
It slices, it dices...
cheers,
Chris Maunder
|
|
|
|
|
Thanks for your reply!
Now I know that I CAN write usual Win32 API apps and MFC apps with the new enviroment!
But I can't open my old VC6 projects into Vc.NET? That can't be allowed!?
------------------------------------
Rickard Andersson, Suza Computing
ICQ#: 50302279
I'm from the winter country SWEDEN!
------------------------------------
|
|
|
|
|
Yes, but you must allow VC to convert them to the new format.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"But there isn't a whole lot out there that pisses me off more than someone leaving my code looking like they leaned on the keyboard and prayed that it would compile.
- Jamie Hale, 17/4/2002
|
|
|
|
|
If you know C++ you know Managed C++, in my modest opinion is just C++ with more classes and garbage collection. Its awesome.
Next time you create a class just do this experiment and let me know
__gc class whatever
{
};
instead of
class whatever
{
};
Cheers
Al
|
|
|
|
|
Does anyone here know how many page table entries can be cached by a Pentium III TLB (translation look-aside buffer)?
Cheers,
Tom Archer
Author, Inside C#
Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.
|
|
|
|
|
|
Could anyone help me in generating a visibly distinct color from a set of existing COLORREFs? I have tried bitwise transformations in conjunction with GetRValue(), GetGValue(), GetBValue()... functions... but sometimes end of with dark colors of the Blue, Red or Green range which are not visible distinct.
|
|
|
|
|
Order the R values of the COLORREF s given, so that the segment [0,255] becomes divided into several subsegments. Choose the largest one and:- if there's no value among those given to the left of this interval, pick 0.
- if there's no value to the right, choose 255.
- Otherwise, select the midpoint of the interval.
Do the same with G and B values and you're done.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Despite how this message sounds, I have nothing against microsoft. Its just that why is it they have released another development environment, but not included updated controls.
.Net has been released, but has no classes for the controls used in its own IDE. Already people are racing to mimic the new 'cool' look and feel. They always talk about how important it is for consistency among applications, then they change the look and dont even provide you with the classes.
Its getten rather old. How long has windows been around, yet thier is still no 'native' support for docking windows. Even if you fallback on MFC, the look is still different. You must yet again, customize to remain consistent.
perhaps i am just loosing my mind?
|
|
|
|
|
Microsoft achieve two things with this.
1. They get apps that look cool and sell for that reason alone
2. They create industries for people who create add in libraries to provide these 'look and feel's.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"But there isn't a whole lot out there that pisses me off more than someone leaving my code looking like they leaned on the keyboard and prayed that it would compile.
- Jamie Hale, 17/4/2002
|
|
|
|
|
The problem is, if Microsoft bundled everything with Visual Studio then somebody would sue them for monopolistic behaviour
Of course keeping their apps looking better than anybody elses gives them a good competitive edge.
It always used to annoy me in the past that I had to write all my own controls to achieve a Microsoftie interface - luckily we now have Code Project which saves me lots of time.
Michael
|
|
|
|
|
Michael P Butler wrote:
Of course keeping their apps looking better than anybody elses gives them a good competitive edge
Is it just me that finds it wierd that people actually will invest in an IDE because of how it looks?
Now taking suggestionsfor a new sig. please email me all suggestions.
|
|
|
|
|
Is it just me that finds it wierd that people actually will invest in an IDE because of how it looks?
To a point, no. If the IDE looks like crap, it probably works like crap. But also, if it looks great, that don't mean it works great.
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
|
|
|
|
Are there any algorithms or source codes could transforms formulas like these:
from: a=b*(c-d)
to: c=a/b-d or b=a/(c-d)
|
|
|
|
|
Hi !
Well, the usual way is to parse the string to create a tree, with parameters as leaves (* + / =) and standard operations as nodes, such as :
*
/ \
b - which is equal to a
/ \
c d
and with some recursive operations, reverse the tree to get c. That´s less complicated that it seems, but requires a little bit time for debugging =)
RaGe
|
|
|
|
|
Are there any examples in source code?
|
|
|
|
|
I actually coded such a thing a couple of years ago, but i do not have the source anymore (that was a project at school), sorry.
RaGe
Unfortunately, brute-force solutions tend to be slow
even when performed by modern-day microcomputers,
which are capable of several MIPS except when I'm late
for an appointment and want to finish a compile and
run just one more test before I leave, in which case
the crystal in my computer is apparently designed to
automatically revert to 1 Hz.
-- Michael Abrash
|
|
|
|