|
Hi everybody!
Could anyone tell me how to create a moving text in Win32?
|
|
|
|
|
There is no magic way of creating moving text in Win32...
You have a few choices, depending on what you want to do.
The simplest is to create a timer (::SetTimer, ::KillTimer) and
in the WM_TIMER handler change some XY coordinates according to
some rule. Then redraw your text in the newly changed position.
If you can be more specific about what you want to do, then
we can be more specific in our replies.
Iain.
|
|
|
|
|
hi,
I'm c beginner.
I have a small problem. How can I make buttons which are dynamically created and erased with the same ResourceID.
Programmed as below:
CtlNewControl ((void **)&frmP, 1323, checkboxCtl, "Hello" , 1, 1, 15, 11, 1, 1, true);
But unfortunately it's doesn't work Maby you could help me with tis stuff .
There is no error's, but there are no buttons either nothing happens.
Thanks
|
|
|
|
|
You should try any other sites concerning CodeWarrior, Apple Dev. and Apple programming.
Maximilien Lincourt
For success one must aquire one's self
|
|
|
|
|
Soory, but Codewarrior used c++, so people transferred me here. Would be nice if someone helps.
Thanks.
|
|
|
|
|
but this is not generic C++ (which we could help).
It does not look like PowerPlant GUI programming (codewarrior UI framework).
What is it ? can you tell us more ?
I googled for it, and it sounds like PalmOS programming; maybe look for more info on the palmos site ( http://www.palmos.com/dev/support/forums/ [^] )
Maximilien Lincourt
For success one must aquire one's self
|
|
|
|
|
Hi Everyone
How do you increase the font size of the text in CTreeCtrl?
thanks
|
|
|
|
|
You need to set a new font for the control. Normally I would do it something like this (assuming your control is part of a dialog)
OnInitDialog()
{
LOGFONT lf;
m_TreeCtrl.GetFont()->GetLogFOnt(&lf):
lf.lfHeight += 2;
m_Font.CreateFontIndirect(&lf);
m_TreeCtrl.SetFont(&m_Font);
}
m_Font needs to be part of your dialog class as it needs to live at least as long as the tree control using it. After setting the font, the tree control should work quite happily with it.
Roger Allen
Sonork 100.10016
Were you different as a kid? Did you ever say "Ooohhh, shiny red" even once? - Paul Watson 11-February-2003
|
|
|
|
|
|
I want to use an example from msdn which tells how to set the proxy settings (Explorer). The problem is that my compiler doesn't know what PROXY_TYPE_PROXY is and many others. Those deifinitions are in the wininet.h but probably I have the older version cause there is nothing about in there. My wuestion is how to download (wininet.h), I do not need (and have no time) to download all sdk.
Maybe you know hot to change proxy setting for DUN ?
Please help.
|
|
|
|
|
Even if someone were to just give you the single .H file, there's no guarantee that it would work without the other files that go along with it. You would also need updated .LIB and .DLL files. Take the time to download the SDK, and burn it to CD. It'll be worth it.
If you are using a modem, go by a local computer store and see if they would be willing to download the file(s) for you, or maybe a friend has a fast connection that you could borrow for a bit. It shouldn't take very long, and will definitely be worth it. I'm using DSL at work and got all files downloaded during my lunch hour.
|
|
|
|
|
I'm looking for a grid control which enable to format the cells (font size, ...) like a rich edit control.
I've tried the Chris Maunder MFC Grid control, but I don't know how to do this with this control.
Does anyone know other grid controls?
Thks in advance!
Appstmd
http://www.appstmd.com
|
|
|
|
|
Having implemented File Dragging / Dropping from Explorer into my application (using the DragQueryFile and DragFinish API), I know need to implement the reverse (drag/drop an item from my application into a directory location in the explorer window).
I assume that for this action my application will then need to receive the path location of the drop target from Explorer and then do what is necessary to create the file.
What technologies of the great and wonderful programming world do I need for this to be implemented.
Details are not necessary, I just need to be pointed in the right direction.cheers.
"..Even my comments have bugs!"
Inspired by Toni78
|
|
|
|
|
Hello
dwCopyLen = dwBufSize - dwSkipCount - HVD_HEADER_SIZE;
how can dwCopyLen become 821 when:
dwBufSize = 815
dwSkipCount = 0
#define HVD_HEADER_SIZE 1+2+4+1 //stx+USHORT+DWORD+char
strange huh?
If i split it to three lines:
dwCopyLen = dwBufSize;
dwCopyLen -= HVD_HEADER_SIZE;
dwCopyLen -= dwSkipCount;
I get the correct result.
Why?
|
|
|
|
|
This comes down to the order in which the operands are evaluated. Your first line expands to
815 - 0 - 1 + 2 + 4 + 1
i.e. 814 + 2 + 4 + 1 = 821
Do
#define HVD_HEADER_SIZE (1 + 2 + 4 + 1)
to get the results you are expecting!
|
|
|
|
|
Martyn Pearson wrote:
This comes down to the order in which the operands are evaluated. Your first line expands to
815 - 0 - 1 + 2 + 4 + 1
i.e. 814 + 2 + 4 + 1 = 821
Do
#define HVD_HEADER_SIZE (1 + 2 + 4 + 1)
to get the results you are expecting!
ofcourse
Why didnt I think of that?
Many thanks!
|
|
|
|
|
Lesson 1:
Don't use macros unless you can't do without.
const int HVD_HEADER_SIZE = 1 + sizeof(USHORT) + sizeof(DWORD) + sizeof(char);
would have done the job.
Lesson 2:
If you have to embrace macros, embrace them correctly:
braces go 'round the entire expression, and each argument
"Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS
sighist | Agile Programming | doxygen
|
|
|
|
|
Hi, I keep getting an error and I can't work out how to get rid of it
it is Error HC5011: cannot open the file E:\VC98\MFC....\afxhlp.hm
I think this is because I moved my project to a machine with a different path. How can I change the path the compiler uses?
Cheers
Andy
|
|
|
|
|
This is a file referenced in your projects .hpj (help file). Its a text file, so open it up and mod the path to the correct (new) location.
Roger Allen
Sonork 100.10016
Were you different as a kid? Did you ever say "Ooohhh, shiny red" even once? - Paul Watson 11-February-2003
|
|
|
|
|
cheers
|
|
|
|
|
I am using VC6 on a 1.3ghz processor.
My project is fairly large (about 1500 files).
When I double click on a header or file in ClassView it takes up to 20 seconds to actually load it.
Also, during this time, MSDEV is taking >95% of the processor time.
Why?
Can I prevent it?
Neil
|
|
|
|
|
Do you have an excessive amount of breakpints set? (Check (under VC6) with 'Edit/Breakpoints')
Try deleting your *.ncb-file. It gets rebuild on the start of VC++6. That is my standard when soemthing strange happens.
My opinions may have changed, but not the fact that I am right.
|
|
|
|
|
I know others that have mentioned this behavior when opening a project with many files. The VS editor is just not built to handle such a big payload.
|
|
|
|
|
I have a DLL written in VB6(not sure) and need to use it from C++
I created manually .DEF file with names of all DLL functions and generated .LIB
(with LIB /DEF:MyDLL.DEF command)
But C++ adds name decoration if I declare imported function as stdcall,
so there are linker errors
e.g. MyFunc in DLL -> _MyFunc@16 in VC++
How to make it work?
|
|
|
|
|
Wrap the declarations with extern "C"
|
|
|
|