|
Hi
does any1 know how i can change
the fonts on some of my static controls
i can do it for all of them,but not for particular ones
thanks
si
|
|
|
|
|
Simply use CStatic::SetFont (actually CWnd::SetFont). You will have to provide to the function a CFont object you previously have created, or retrieved from GDI stock objects (by using ::GetStockObject for instance)
|
|
|
|
|
|
Each control you need to set the font for needs an unique ID so you can get the handlt to it.
Make sure they are not IDC_STATIC which is -1
If you vote me down, my score will only get lower
|
|
|
|
|
|
HI ,
I want to build Some think like media player
that can play a WMV file n i can also forward n Back it.
any sample ,,, or help code
thanx
|
|
|
|
|
Hi,
Have a ListControl with 2 columns as follows:
1stColumn | 2ndcolumn
*************|***********
CodePage |2
*************|***********
FormFeed |x
*************|***********
LineFeed |y
*************|***********
The 1st Column members for me are Labels that won't change.
The 2nd column,Iam creating different controls depending on the 1st column label.
I have a click event for the listcontrol,in which when a user clicks on a cell on the 2nd column,depending on the 1st column label i have to create different controls.
I know how to create controls,My question here is when the user clicks on the cell,would like to the coordinates,like the column & row in which the cell, he clicked lies.......
Thanks..
|
|
|
|
|
Use CListCtrl::HitTest. LVHITTESTINFO parameter will show you what item and subitem is at the point where the mouse clicked.
Jaime
|
|
|
|
|
|
Hi,
I would like to know how I could parse the exe file (.idata section).
Thanks in advance,
Kavita Fernandes
|
|
|
|
|
Hello Friends,
I had done a Project "School management System" and I am facing a similar problem in my interviews. this project the question is
When the Project SMS can be done in VB, Why you had choosen VC++ for developing it? I couldn't able to answer convincingly,
Please help me regarding this question.
Thank you friends
|
|
|
|
|
Neelesh K J Jain wrote:
I couldn't able to answer convincingly,
what did you answer ?
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
look up the differences between VB and VC++?
"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix
|
|
|
|
|
Neelesh K J Jain wrote:
Why you had choosen VC++ for developing it? I couldn't able to answer convincingly,
Well, the obvious answer is that you made use of the skillset available. That your VC++ skills were stronger than your VB skills and therefore were able to implement a solution in VC++ in a quicker timeframe than if you had to write it in VB. You were also able to reuse your existing C++ code libraries to implement the application. Thus saving on time, cost of development and using existing tested code.
At least, that's what I'd say.
Michael
CP Blog [^]
|
|
|
|
|
That's definately the political answer
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)
|
|
|
|
|
...but most probably it was the answer the interviewers were expecting.
|
|
|
|
|
A simple answer could be one of preference.
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)
|
|
|
|
|
You start with a question: "Are you serious?". When it is evident that the interviewer is, you laugh scornfully and leave the room.
Seriously, that something can be built in VB, or with batch-files, or by using paper-clips, doesn't imply that it is a good idea. So, you just might want to say: "When MS starts to deliver end-user apps built in VB, so will I".
|
|
|
|
|
not a fan of VB then Johan?
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)
|
|
|
|
|
As a matter of a fact, I don't care one way or the other. It's just the way the question was posed
|
|
|
|
|
Note that when asking questions about job interviews, résumés,... you will always get into endless discussions.
The truth is that you'll never know for sure which answer is expected. (short but good or does he want the gory details,...) Every person expects something else.
Know as much as possible and try to answer what you think the interviewer would like to hear. (and hope you guessed right)
anyway, good luck to you.
"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix
|
|
|
|
|
My application is running very long loop and I would like to give the application time to redraw it-self and proccess all the messages and so on... I don't wanna use threads... For instance in that loop I am setting some text in CEdit and the application doesn't show it until the loop is finished... I really want something as simple as possible... Thanks for help to everybody....I really appreciate it.
|
|
|
|
|
Try putting in Message pumping looping into the code, maybe after completing a iteration in a loop. Adjust the below code for handling any accelerator or dialog boxes used.
if(GetMessage(&msg, NULL, 0, 0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
Mayank Goyal
|
|
|
|
|
This doesn't work for me, but thanks for trying...
|
|
|
|
|
You must either use multithreading or to implement a message pump (as Mayank Goyal suggested). As far as I know, there no other way to get what you want
|
|
|
|