|
This might help you out:CFontListBox[^]
BTW, please use the search feature.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
|
hi,
in C++ (not vc++) how can I print a text in position x,y of screen?
Best wishes
|
|
|
|
|
gotoxy() should help you do this.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
unfortunately, there is NO standard C++ function to do this.
borland provides gotoxy(), VC++ provides others, but none in the standard C++ however
|
|
|
|
|
OK - I searched MSDN and found this:
SetConsoleCursorPosition[^]
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
I want to get API Information (retval type, argument counts, argument type) from API Name in runtime.
For expample,
PAPI_INFO api = GetAPIInfo("CreateFile");
printf("retval type: %s\n", CODE2TEXT(api->RetvalType));
printf("arg counts: %d\n", api->NumberOfArgs);
for (i = 0; i < api->NumberOfArgs; i++) {
printf("arg %d type: %s", i, CODE2TEXT(api->Args[i].Type));
}
If you have good idea other than parsing header files, tell me please.
|
|
|
|
|
jm_240 wrote: If you have good idea other than parsing header files
Yes: pass to managed code.
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
CPallini wrote: Yes: pass to managed code.
Thank you for your answer.
However, I don't understand how to solve it using managed code.
Could you tell me more details?
# Of course, I know what managed code is.
|
|
|
|
|
Well, did you notice the joke icon?
Anyway, you cannot solve your original problem using to managed code. I was simply pointing out that such info is a facility managed code provides (via reflection) for itself.
I.e. using managed code you may obtain a lot of useful info about (managed code's) methods even loading dynamically assemblies.
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
How to remove GDI Leak due to VideoMixingRenderer9
ytfytfyfyrdtdetdertrttr
|
|
|
|
|
Sorry, I was not aware of GDI leak in VMR9. I think it may be in your program, like while setting mixer bitmap, or similar that involves GDI. What are you doing with VMR9, how do you confirm leak in VMR9.
|
|
|
|
|
Hi,
I am able to print mschart control with IViewObject but not able to print my activex control. It is not giving any error but it is not printing. Is there anything that i need to do for my activex contrl to support printing.
Regards
|
|
|
|
|
subramanyeswari wrote: Is there anything that i need to do for my activex contrl to support printing.
Yes, you may try to post your question in the COM forum [^].
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Hi everybody,
i place a Grid into a position of (-10,0,200,100) into my view.
So there are missing 10 pixels of the grid, which i wanted.
My question is: Why i get a rectangle of (0,0,190,100) if i make a
Grid->GetClientRect(rect); ?
It's normally correct that the rectangle starts always in a client-position in 0,0
But how i can retrieve where my grid is really positionated on the view?
I want to get the value of (-10,0,200,100), like i used it in the Grid->Create(...);
Big thanks for help
|
|
|
|
|
baerten wrote: My question is: Why i get a rectangle of (0,0,190,100) if i make a
Grid->GetClientRect(rect); ?
By drawing something at (-10,0,200,100), you should have produced a result like this:
<font color="blue">|</font> <font color="blue"> |</font>
--<font color="blue">|</font>----------<font color="blue"> |</font>
--<font color="blue">|</font>----------<font color="blue"> |</font>
--<font color="blue">|</font>----------<font color="blue"> |</font>
--<font color="blue">|</font>----------<font color="blue"> |</font>
--<font color="blue">|</font>----------<font color="blue"> |</font>
The blue line is the virtual boundary and what is drawn outside the boundary, is gone invisible. Why don't you begin your drawing at 0,0 instead of -10, 0 ? Is there a specific reason to it?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Skilled in figurative arts?
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Been drinking an espresso americano. Probably that had something to do with it. Rich, smooth and warm. Ah - Caffeine in my blood.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Rajesh R Subramanian wrote: Caffeine
Oh, I like soo much!
BTW
Rajesh R Subramanian wrote: espresso americano
I know espresso (i.e. Italian ) coffee, and American coffee (i.e. espresso watered down ).
What is espresso americano?
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
You're a lucky guy sitting at Italy. You must be drinking the best espresso coffees.
CPallini wrote: What is espresso americano?
I'm not a coffee expert (I drink lots of tea). To me, it is just another black coffee. But I always like italiano (in black coffee) or cappuccino better for reasons unknown. I've also liked frappe + chocolate sauce topped up with freshly whipped cream (when it comes to cold coffee).
I think we're *this* close to hijack this thread and convert it to a food thread completely.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
big thanks for your answer.
Yes it has really a reason This way i hide a vertical at the left side of the Grid.
So the grid is smaller and fit's better to the layout.
Ok, as i understand i can't get the initial value because during the draw it's "deleted"
but if this grid is drawn at new, "the view" need to know how to draw the grid, which means
at (-10,0,200,100) and not at (0,0,...)
|
|
|
|
|
I get it now. I was just wondering why did you go out of your way to draw your grid out of the window area. Rajkumar's answer is pretty straight forward. CPallini's solution should work too.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
I think you need:
pGrid->GetWindowRect(&rect);
pView->ScreenToClient(&rect);
But I didn't make a test.
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
AFAIK, you have to remove the call to ScreenToClient, otherwise you'll end up with the same resutl as calling GetClientRect.
|
|
|
|
|
I don't think so, because ScreenToClient is called by the pointer to CView .
On the other hand, pGrid->GetWindowRect will not produce the expected result for sure (of course there is a small probability for a coincidence...).
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|