|
WhiteSky wrote: I suggest read a good book about C/C++ or also if you see is helpful for you www.cplusplus.com
when i learning c++ i used to go there!. but now they have changed the interface! any way happy new year dude
|
|
|
|
|
Thank you Alok
|
|
|
|
|
Hi there,
I need some advice on how to be able to show one of the custom control's scroll bar and hide the other. Both of the custom control has the same class. Apart from that, the 'SetScrollRange' function is located at the OnPaint() in the custom control's class.cpp.
TQ.
|
|
|
|
|
cyn8 wrote: I need some advice on how to be able to show one of the custom control's scroll bar and hide the other. Both of the custom control has the same class. Apart from that, the 'SetScrollRange' function is located at the OnPaint() in the custom control's class.cpp.
is you custom class support ShowWindow
|
|
|
|
|
my custom control has a CWnd base class. Therefore, i believe it does support ShowWindow. Do you have any suggedtionon how to do what i've mention before?
Any suggestions are welcomed. Thanks
|
|
|
|
|
Generally, scroll range should be set when the window/control changes size, not in OnPaint().
If you do it in OnPaint() then your new settings could cause another repaint.
Try changing scroll settings in response to WM_SIZE. If the scroll settings indicate that no
scrollbar is necessary then it will disappear.
"Great job, team. Head back to base for debriefing and cocktails."
(Spottswoode "Team America")
|
|
|
|
|
Hello every one!
I need help. I need a program which transmit a video from peer to peer via a serial port
please help me.
|
|
|
|
|
Which part are you having trouble with? Video capture? Playback? Serial port communication?
"Great job, team. Head back to base for debriefing and cocktails."
(Spottswoode "Team America")
|
|
|
|
|
i am writing a c project using visual studio 6
the programme runs perfectly in debug mode and gives the right output
but when i am trying to execute the program (ctrl+f5) its failed and raise an application error
the instruction at 0x7c9..etc referenced memory at 0x00344..etc the memory could not be "read" .
i know that maybe i have an error in my dynamic memory allocation but how can i find it while its run fine in debug mode .
should i put a print messages in the code !!!!??? (((
thanks .
|
|
|
|
|
You can post some relevent code. Possibly, its due to corrupted memory.
|
|
|
|
|
have you tried to use the debugger (i mean, setting breakpoints and watch some variables to understand what's actually going on) ?
|
|
|
|
|
|
The most common cause of this type of error is an uninitialized pointer.
char *str;
strcpy(str, "Hello"); or
delete pointer;
DoSomething(pointer);
You may be right I may be crazy -- Billy Joel --
Within you lies the power for good, use it!!!
|
|
|
|
|
A good first step is to remove the /GZ[^] and /RTC[^] compiler switches from your debug build (temporarily).
Steve
|
|
|
|
|
Sometimes you see applications using controls that you would like to use in your own application . Is there a way to list the names of controls used by a compiled application ?
Thanks you in advance
|
|
|
|
|
If you could to read controls of an application how do you use them on your application?
|
|
|
|
|
aklougbo wrote:
Sometimes you see applications using controls that you would like to use in your own application
Use FindWindowEx and EnumChildWindows to enumerate the child window in Application.. for getting type of control you can call GetClassName api to retrieve it class!
|
|
|
|
|
Hello,
Is it necessary to give a range to a scrollable window?
If SetScrollRange is not given after after creating a window what are the implications?
Prithaa
|
|
|
|
|
have you read the doc and tried anything ?
|
|
|
|
|
prithaa wrote: f SetScrollRange is not given after after creating a window what are the implications?
The implication is that the system doesn't know how to draw the scrollbar or how far it should
allow the user to scroll it. This makes a scrollbar fairly useless.
Useualy scroll range settings change every time the associated window is resized.
Mark
"Great job, team. Head back to base for debriefing and cocktails."
(Spottswoode "Team America")
|
|
|
|
|
how to get keyboardkey value?
|
|
|
|
|
Can you be more specific key value
|
|
|
|
|
janpoo wrote:
how to get keyboardkey value?
GetAsyncKeyState()
|
|
|
|
|
How to set tab key value for buttons on dialog.
eg:
The dialog have 5 buttons.when i press tab key it will move around the buttons.how to do that. plz help me.
|
|
|
|
|
I'm not entirely sure what you mean. If you're just talking about being able to switch the focused button by using the Tab button; the operating system should handle that itself.
If you're making the window from a resource, make sure the button has "Tab Stop" checked. If you're making the window from from code, or on-the-fly I believe it's called, there may be a Style flag for "Tab Stop." "Tab Stop" is what tells the OS that the button (or other control) is a valid target to set focus to when the user cycles with the Tab key.
If you're talking about changing the order that they get focus in, in Visual C++ 6.0 I know you can hit Ctrl+D to do that. (in the resource editor)
|
|
|
|