|
|
You can make the dialog resizable and with scrollbars (it's a dialog style), but then you have also to handle scrolling by repositioning the controls according to the thumbs positions.
Anyway, if you have large "dialogs" you've probably created a wrong metaphor in the user interface.
Good dialogs shouldn't be wider than about 600 x 400 (otherwise they must be prepared to handle scrolling and zooming).
So consider the idea to break your dialog in multiple "pages" using tabbed dialog pages.
It will probably end in a better usability than a scrollable dialog.
2 bugs found.
> recompile ...
65534 bugs found.
|
|
|
|
|
I wrote an article which also handles this problem: http://www.codeproject.com/useritems/Multimonitor.asp
Look for the message-handler for WM_DISPLAYCHANGE.
Greetings from Germany
|
|
|
|
|
can any body reply me
malik
|
|
|
|
|
there is certainly technique to delete a non system file, which i used some years ago. i can recall and reply you soon.
but temporarily, i can suggest you to simply create the file and close the file such that the data will be lost.
will it be sufficient for you?
|
|
|
|
|
rajneshmalik wrote: how can i delete file after reading from any directory
Using MFC,have a look at CFile::Remove()
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Does SHFileOperation helpful?
|
|
|
|
|
rajneshmalik wrote: can any body reply me
yes i can... hello
|
|
|
|
|
Its for start to reply
|
|
|
|
|
rajneshmalik wrote: how can i delete file
There's always the DeleteFile() API.
MArk
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi friends,
I've built a COM component using ATL.The component gets created succesfully,but i'm not able to see it in the registry(tried registering it manually useing regsvr32 and it said component registered successfully)..Any help will be highly appreciated.
Thanks and regards,
Rajeev
|
|
|
|
|
The registration wasnt so successful as displayed. Debug your COM registration code.
Greetings from Germany
|
|
|
|
|
i suggest the members(those who pose queries) to indicate the starting message with any key words like "Solved" such that, the posts will be sorted and good to analyse for others
|
|
|
|
|
if you have any suggestions, the Suggestion Forum[^] is open for that.
for what you propose, i already suggested such a feature months ago...
|
|
|
|
|
How can I convert dec to bin?
int i=123;
printf("dec: %i bin: ???", i, i);
|
|
|
|
|
This is some quick and dirty programming.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
try to answer my question, i have put it under your first post.
|
|
|
|
|
Is it some kind of assignment to you? Anyways here is the code :
int ConvertDecimalToBinary(int i)
{
int temp = 0 ;
int counter = 1;
int binary = 0 ;
while (0 != i)
{
temp = i%2;
i = i/2;
binary += temp*counter;
counter*=10;
}
return binary;
}
Larsson wrote: printf("dec: %i bin: ???", i, i);
and yes, printf("dec: %d bin: %d", i, ConvertDecimalToBinary(i));
and this function does have its limitations.
-- modified at 7:43 Wednesday 29th August, 2007
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
dear AnShUmAn
can your code get me answer for the integer 100?
please verify and reply
|
|
|
|
|
do you doubt it? why so
Then check it for urself.
I didn't try executing it and still it should work fine for all numbers that are within the int range whether it be 2 or 100.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
|
it won't work for that number because the value being returned is an int and range for int's is upto 32767 and while performing the calculations the number (value "binary" being returned from that function) exceeds the limits. ie why I said that this technique is quick and dirty . OPTIMIZE it
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
chandu004 wrote: does it work for 1024?
void DecimalToBinary(int number) {
int value;
if(number <= 1) {
cout << number;
return;
}
value = number%2;
DecimalToBinary(number >> 1);
cout << value;
}
Now it would............ and now don't say that it won't work for a negative number :->
Just do some error handling. I hope that this does work for you
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
did you know that itoa() was doing that kind of stuff by itself ?
|
|
|
|
|
_AnShUmAn_ wrote: and this function does have its limitations.
It's a good thing, too. Otherwise you would have quickly realized your function does not "convert" its argument to base-2. The function will need to return some sort of char* or string in order to properly represent a base-2 number.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|