|
followait wrote: By default there are 8x6 colors for choosing.
No
followait wrote: they would like the program be easy
to use.
And using more than 48 colors makes the program easy to use? Wow, are they brain dead?
led mike
|
|
|
|
|
Especially since it lets the user pick one of 2^24 colors
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
led mike wrote: No
I mean 'basic color' in the title.
|
|
|
|
|
Pretty vague question
Are you referring to the "color dialog box" common dialog?
If so, then like any other dialog, if you need additional
functionality you can write your own.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark Salsbery wrote: Are you referring to the "color dialog box" common dialog?
Yes.
The number of basic colors seems not changable.
I think I should implement one.
|
|
|
|
|
followait wrote: By default there are 8x6 colors...
There are 48 basic colors, but there are 2563 total colors.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Sure.
The key is when the customer is choosing a color for background,
a set of well-selected colors may be better than all here.
|
|
|
|
|
Heh yeah, but if you put 1000 basic colors, I bet you still won't
have my favorite blue.
How do you decide how many is enough?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark Salsbery wrote: Heh yeah
"Yeah"? You understood that? Can you translate it for me?
followait wrote: The key is when the customer is choosing a color for background,
a set of well-selected colors may be better than all here.
and what about this one?
followait wrote: but I can't decide how to choose and put colors so that it can look a little good.
led mike
|
|
|
|
|
That should have been...
"*snicker* [sarcasm]yeah[/sarcasm]"
Damn you text, and your lack of emotion...
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
|
|
Hi,
I am trying to read a webpage, but to view the webpage PostData must be sent to the server. How do you do that? The PostData is long (ASP.Net, so includes the __VIEWSTATE). I just dont know how to send a post back to the server. I am sure its simple, but I have searched and cant find anthing. Please help me, I have been stuck on this for weeks.
Thanks, Mike
|
|
|
|
|
Lucky the code machine wrote: I am sure its simple
Really? It is?
Do you know how to perform an HTTP POST request?
Do you know what the POST data requirements are for the page?
Do you know how to form __VIEWSTATE data?
Do you know if the site requires a session cookie? If it does do you know how to manage the cookie?
Try reading the first thread in the forum "How to get an answer to your question". Pay attention to Item #2.
led mike
|
|
|
|
|
I'm sure it's simple.
mmm cookies and fish...
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
led mike wrote: Do you know how to perform an HTTP POST request?
No, this is what I need to know.
led mike wrote: Do you know what the POST data requirements are for the page?
Yes. I have monitored an IE session and trapped the outgoing HTTP post.
led mike wrote: Do you know how to form __VIEWSTATE data?
Yes, the viewstate will not change, so I will be sending it back as the server sent it out.
led mike wrote: Do you know if the site requires a session cookie? If it does do you know how to manage the cookie?
It does not require a session cookie.
So, to be more specific with my question:
How do I perform a HTTP POST request in C++?
|
|
|
|
|
There are a number of classes (MFC WinInet library / Socket classes) and/or API's (WinInet API) all the way down to just using the Winsock API.
Of course all of these classes and API's are well documented on the MSDN Web site.
When using any of these solutions knowledge of the HTTP protocol[^] could prove valuable, but that's up to you.
Last modified: after originally posted -- sorry about the forum mix up, my bad
led mike
|
|
|
|
|
Hi,
I m a beginner to vc wit MFC libs..
My display gets troubled wen i use GetSystemMetrics(SM_CXSCREEN) fn
to retrieve the resolution of the screen..
wen i decrease the resolution my controls placed at the right end of
the dialog s not displayed..and, wen i try to increase my resolution,
the control placed on the right edge of the dialog s placed in center..
but i ve to use the GetSystemMetrics()to retrieve my resolution and get my screens
updated accordingly..
Do suggest be wit the solution require..
Regards
Gita
|
|
|
|
|
Please don't write everything in italics.
For your problem: the only solution is to replace all your controls through code. There are some articles here[^] that might do the trick for you (you have to search a little bit). The first one looks promising.
|
|
|
|
|
Are you wanting the controls on the dialog to move and resize themselves based on the size of the dialog?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
ya.. accordin to the updations made in the resolution of the monitor,
my dialog s to be replaced wit its controls positioned as such during
designing..
but wen i design dialogs in lower resolution an view it in higher,
my contols r mis-placed to some mid-part of the dialog durin run-time.
same wen i try to design it in higher an run the same in lower,
controls placed in right edge of the dialog culdnt' be seen..
Hope my query s clear nw..
Gita
|
|
|
|
|
If I understand you correctly, I show a way to do this near the end of this article.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
dear all
why numbers exceed 150 here below code? here numbers = num[0]+num[1]+num[2]..why it exceed 150....i checked c[10[150[3],d[10][150]...any problem? thanks
for (int j = 0; j <10; j++)
{
for (int j=0; j<3; j++)
{
sum[j]=0; num[j]=0;
}
for (int k = 0; k<150; k++)
{
for ( int n=0; n<3; n++)
{
if (d[j][k] == c[j][k][n])
{
sum[n] += d[j][k];
num[n] = num[n] +1;
}
}
}
}
Li Zhiyuan
|
|
|
|
|
Well I think it is a bit dependent on d and c array values.
BTW have you the debugger at hand, haven't you?
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.
[my articles]
|
|
|
|