|
Hello Naveen,
please can you be more specific about owner draw, do you know a sample how to use owner draw?
i like to learn more about this?
regards
termal
|
|
|
|
|
some controls such as combo box, list box, list view control,menu , button etc supports owner draw style. If we set this syle to the control, windows will not paint this controls. Intead it sends a WM_DRAWITEM message to the parent window of that control. we can handle this message( if your using MFC, you have to overide the DrawItem() virtual function) and draw the control in the fashion you like.
nave
|
|
|
|
|
hi friends,
can we use a form view in tab control(in a dialog based application)
if so suggest me how to create it
Thanks
|
|
|
|
|
hi friends,
can we use a form view in tab control(in a dialog based application)
if so suggest me how to create it
Thanks
|
|
|
|
|
Is it possible to use the same socket to read and write from the network ?
I usually use a socket for writing data and a socket for receiving.
Thanks
|
|
|
|
|
Yes, for example a UDP socket listens on a port and sends replies back to the other peer.
|
|
|
|
|
ilgale wrote: I usually use a socket for writing data and a socket for receiving.
Why?
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
How to set 1024x768 display resolution using C++ on MS-DOS?
|
|
|
|
|
"ChangeDisplaySettings" API can be used to change the settings of the default display device to the specified graphics mode.
Thanks & Rgds,
Sri..
|
|
|
|
|
What you have suggested can be sone using VC++. We are working in C graphics on Dos operating system.
|
|
|
|
|
And what compiler do you use?
nave
|
|
|
|
|
|
sakssp wrote: We are using TurboC++
Ops, I have only a little experience working in turbo c graphic. I guess you might be using the
initgraph() to intialize the graphic screen isn't it? At the time when I worked in TC++, the graphic driver that came with the TC allowed me to set only a maximum 640X480 resolution. I think now they will be providing some new drivers. Get it and copy it to your TC\BGI folder also specify this file in the initgraph function.
nave
|
|
|
|
|
|
sakssp wrote: We are working in C graphics on Dos operating system.
Then why did you ask a "through C++" question in the VC++ forum?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
sakssp wrote: How to set 1024x768 display resolution using C++ on MS-DOS?
try mode 13h... or it's better you shift to Windowsprogramming.. graphics programming is pretty much easier in windows programming..
|
|
|
|
|
Hi
I am a beginner visual c++ programmer and I have a difficulty.
There are two buttons on a dialog box and both of them will create a new dialog box.In the new dialog box I should know which button is pushed to create this dialog box.I tried CButton::GetState() method but it did not solve the problem because I think this method is for radio buttons.So how can I know which button was pushed.
Thanks
|
|
|
|
|
in the resource editor, open your dialog template, and double click on the button which is supposed to open another dialog. it will ask you to give a name to the event handler being created. press enter, and place your code there...
also, maybe this[^] could help.
|
|
|
|
|
when a button is pushed OnBnClicked(button name)() function will be executed and you will know which button is pressed. put message box in each of the button clicked functions with different message
|
|
|
|
|
But can I use the event in a different dialog box from the dialog box which the event is created.Because I want to know in the second dialog box that which button is pushed in the first dialog box.
|
|
|
|
|
can you show me the code whr u are calling the new dialog(or creating a dialog)
|
|
|
|
|
thanks
I solved the problem from another way.
|
|
|
|
|
iayd wrote: In the new dialog box I should know which button is pushed...
So why not just pass some sort of identifier to the new dialog's constructor?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I am implementing a CString object and I want to convert a string in CString to char buffer.
S.Yamini
|
|
|
|
|
CString str;
Use str.GetBuffer() and str.ReleaseBuffer()
|
|
|
|