|
bancavo wrote:
pdc->FillRect(rcBounds, CBrush::FromHandle((HBRUSH)GetStockObject(HOLLOW_BRUSH)));
This call does nothing at all. You're filling a rectangle with a brush that has no colour. So no, the background won't get cleared or redrawn. You'll have to draw it some other way.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
thanks for your answer.
oh yes thats correct, sorry
I have an ActiveX with animated ellipses and rects etc.
I would like to merge my ActiveX in MS Powerpoint on a whole foil. Afterwards I would like to draw MS Powerpoint Items on it. Without a transparent background I cannot see the objects, because if the ActiveX get focus the the Items slips into the background.
It brings also nothing to change the order of the Items and the ActiveX in MS Powerpoint.
I need a transparent ActiveX Background, and that should be cleared if i call for example OnDraw()
I don't know how can i do this.
I would be very grateful for suggestions!
|
|
|
|
|
yaseeen wrote:
I need a transparent ActiveX Background, and that should be cleared if i call for example OnDraw()
I'm not sure if you can do this. By definition, a transparent background is not drawn.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
I would like to know if the first sign in a CString is a char or a number (e.g. ‘c’ or ‘3’)
Any tip how to find it easy…
_____________________________
...and justice for all
APe
|
|
|
|
|
try IsDigit() and IsAlpha()
[insert witty comment here]
bdiamond
|
|
|
|
|
where do you find that IsDigit?
Is it a member of CString? Can't find it...
_____________________________
...and justice for all
APe
|
|
|
|
|
|
While bdiamond most likely provided you with the answer, you might also want to know that the first character in a CString object is accessed via the [] operator, like:
CString str;
if ('c' == str[0])
...
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Hi, how can I use ACTIVEX control in a MFC dll if the main application is not MFC based ?
|
|
|
|
|
I want to registerenvironment vaiable for my project
|
|
|
|
|
<font style="color:blue;">int</font> main (<font style="color:blue;">int</font> argc, <font style="color:blue;">char</font>* argv[], <font style="color:blue;">char</font>* envp[]) {
<font style="color:green;">
}
where envp is a table with the names of the environment variables...
TOXCCT >>> GEII power
|
|
|
|
|
For user-specific variables, use:
HKEY_CURRENT_USER\Environment
For system-wide variables, use:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
"HKEY_CURRENT_USER\Volatile Environment"
I think this was also there
There is no spoon.
mail
|
|
|
|
|
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/setenvironmentvariable.asp
4apai
There're no impossible tasks. There're tasks that required infinite period of execution time.
|
|
|
|
|
I developed a simple program in vc++.It stores data in a .dat file.the exe stores data properly when i run the program under vc++ environment.But as soon as i link the exe on the start menu the exe runs,but it not stores data in .dat file.Give me a solution of this problem.
|
|
|
|
|
It sounds like the application is using a relative path instead of an absolute path to the .dat file.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
do you put into the start menu a shortcut to your program, or the executable itself???
TOXCCT >>> GEII power
|
|
|
|
|
Have you set the working directory accordingly? I assume your dat file is in the working directory.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Williams (Little Britain)
|
|
|
|
|
usually when I want to send an array to a function that is declared like this:
int array[10];
the function header is like this:
void DoArray(int* array, int nCount);
then I still reference the array indexes like it was a regular array. But I've also seen this:
void DoArray(int array[], int nCount)
what's the difference, and is one better than the other?
[insert witty comment here]
bdiamond
|
|
|
|
|
no difference for me
in all cases, int array[]; and int *array; declares a pointer to signed integers...
TOXCCT >>> GEII power
|
|
|
|
|
toxcct wrote:
no difference for me
Same here
<italic>Work hard and a bit of luck is the key to success.
You don`t need to be genius, to be rich.
|
|
|
|
|
It helps if you remember that the following two statements are the same:
array[5];
*(array + 5); See here for more.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
In the end none.
However for the sake of other programers, it is nice to see
void DoArray(int array[],int nCount);
as that tells everyone you intend to use an array. int * can have many meanings other than an array. In example code like this it is obvious, but in the real world it is more like to look like:
returnValueName doSomeStuff(struct names validNames[],int count, OperationCodeList Op)
Now consider the case where names is known to be a linked list, if you had used the *validNames form maintainers (who have to be in and out quickly) will not realize something strange is going on.
Of course I would expect a comment someplace that exmplains doSomeStuff takes an array of linked lists, each list covers one gender. But will anyone recall in latter years that this function is mostly used to cover aliens from phlanix-minor who have 3 distint genders.
Unfortunatly coming up with a real world type example is tough, but I hope you can enjoy the above, and see the point.
|
|
|
|
|
thank you all for your help!!!
[insert witty comment here]
bdiamond
|
|
|
|
|
Henry miller wrote:
int * can have many meanings other than an array.
It can? I only know it to have one: a pointer to an int .
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|