|
Your gonna have to subclass...I see no other way of doing it...
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
A lot of DirectMusic8 functions ask for MUSIC_TIME arguments. What is MUSIC_TIME? The SDK Help doesn't say. What format is MUSIC_TIME in (milliseconds, seconds, etc)? Do I have to set the format? If so, how?
Thanks in advance.
|
|
|
|
|
Music time is a 32-bit value defined as type MUSIC_TIME. It is not an absolute measure of time but is relative to the tempo. The clock is started when the performance is initialized and ticks DMUS_PPQ times for each quarter-note. DMUS_PPQ is defined as 768
|
|
|
|
|
Music time is a 32-bit value defined as type MUSIC_TIME. It is not an absolute measure of time but is relative to the tempo. The clock is started when the performance is initialized and ticks DMUS_PPQ times for each quarter-note. DMUS_PPQ is defined as 768
|
|
|
|
|
Hi,
I need an Edit Control, which allows to read very large files in smaller
portions(not the whole file at once), and read the appropriate portion of the file depending on the Arrow or Page Up-Page Down keystrokes or Scroll Bar position. Is anyone aware of a class like this on this website or other sites?
Thanks a lot,
Yehuda.
|
|
|
|
|
ummmmm
its really easy to do this urself
just have saya cstring that holds the reqd bit of text and keep track of where in the file u are ... when u need a new bit just read from the new offset and display it
"even if my world is weird it's my world" biz stuff about me
|
|
|
|
|
One solution is a vector of string object or CString object, each representing one line of text in the editbox. Use a list if you want to delete one or more line.
Kuphryn
|
|
|
|
|
I have a SDI application ,the main view is implement CFormview,but the controls reside in the form can not receive COPY or PASTE message,how to do it?
Thank a lot!
Please pardon my weak English!
|
|
|
|
|
What are COPY and PASTE messages?
You may want to copy and paste data according to a context menu or when the user presses a certain key.
Kuphryn
|
|
|
|
|
kuphryn wrote:
What are COPY and PASTE messages?
Perhaps he mean the WM_COPY and WM_PASTE messages?
They only works with an EDIT control!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Hi,
I need to have an small customized HTML editor ( to use in my main application), it should look like an standalone application, with a toolbar...
If I use the HTML control alone, then I won't get the look and feel of a Window application, what I thought was to create a COM object, with a method called StartEditor, this method would show an AxWindow, that inside would have the toolbar and the HTMLControl ( as the ActiveX control hosted in the window), is this a good idea ?
Could it be possible to call from my MFC application directly the AxWindow, instead of making a control that shows that window ?
Thanks in advance, greetings
Braulio
|
|
|
|
|
We are currently using Visual C++ 6.0.
Lots of recent developments use lots of templates, and it seems that Visual C++ 6.0 is not very well suited for this (crashes, internal compiler errors, valid C++ does not compile, ...). We would like to upgrade to Visual C++ 7.0, since that seemed to be much better (on our test system), but I already heard rumours about a version 7.1.
Anybody knows when that is released ?
Or even better, is there a way to make Visual C++ 6.0 work with complex templates ? Maybe via a C++ preprocessor ?
Enjoy life, this is not a rehearsal !!!
|
|
|
|
|
Partial template specialization(PTS) don't work in VC++ 6 neither in VC++ 7, full and proper namespace lookup also don't work .
Patje wrote:
but I already heard rumours about a version 7.1.
I'm expecting this a long time ago , perphaps in the end of the year before VC++ 8, a much improved C++ std compliant ...
VC++ 7 is much better standard compliant and have better support for template support , and the STL(Dinkumware) library is much more improved and standard.
For faking PTS, see resources on Joãquin article on STL bi-directional maps here on CP, it's at the front page.
See also www.moderncppdesign.com[^]
In the page there is a link for the Loki library , a powerfull template library , and it have a link to a port of the library to VC++ 7 where PTS is faked.
Cheers,Joao Vaz
And if your dream is to care for your family, to put food on the table, to provide them with an education and a good home, then maybe suffering through an endless, pointless, boring job will seem to have purpose. And you will realize how even a rock can change the world, simply by remaining obstinately stationary.-Shog9
|
|
|
|
|
Hi,
I am new to Data base programming, i want to obtain the coloumn names of a Database Table using ADOX::_TablePtr class. I can obtain the names using _TablePtr->GetColumns()->Item[index] function, but then it returns me the names in alphabetical order, how can i get the names in the same order as in the table..
I will be really thankful if someone can help me in this regard.
|
|
|
|
|
I'm trying to implement a 'inactivity' feature in my MDI/SDI app. Since there are many different modal dialogs that could be up, I'm using windows hooks to set/reset a timer based on keyboard and mouse events. That's all working fine.
I'm having a problem killing off any dialogs (who might also have children dialogs) that might be up when the timer kicks off.
I'm doing all of this from within my CFrameWnd derived class, but can't simply post WM_CLOSE to the frame, since my frame class has a little 'signon' screen that it reverts to.
In my timer handler I've tried SendMessageToDescendants(WM_CLOSE), and I've tried finding children windows with GetWindow(GW_CHILD) and posting WM_CLOSE (even tried WM_DESTROY), but my child windows never seem to care. Actually they never even seem to get the message...
If I save off a CWnd* to the currently modal dialog, and then send a WM_CLOSE to that, it'll go away, but it's children hang out. I thought they would go away too. But I'd rather not have to save off that ptr (there are a lot of menu commands that bring up dialogs, dozens and dozens) if there is another way around it..
Anyone have any suggestions?
|
|
|
|
|
Ok. I'm almost embarrassed to ask this one, but here goes...
I have a dialog box with a CEdit control on it. I'm using it as a logging window, but I can't get it to multiline my text. I'm using a CString member variable to contain the text that is written to it, but when I insert a '\n' or '\r' the CEdit control displays it as a control character inside of moving to the next line.
What properties need to be set? The ones that I have checked are:
- multiline
- horizontal scroll
- vertical scroll
Am I missing something? Thanks in advance.
Mark
Mark Donkers
A witty saying proves nothing.
-- Voltaire
|
|
|
|
|
use \r\n to pass a line
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Perfect. Thanks Papa.
MD
Mark Donkers
A witty saying proves nothing.
-- Voltaire
|
|
|
|
|
Hi, everyone!
I want to get HTTP response header of my HTTP request.
I have seen some documents in MSDN, but I think it is
too hard to understand.
I just want to get all of the header and print it out.
Are there some sample codes?
Cheers,
George
|
|
|
|
|
|
Thanks, Ravi pal!
I have seen the article you introduced to me.
It really helps a lot!
Cheers,
George
|
|
|
|
|
Thanks, Ravi pal!
I have a further question. I use the following codes to
get the header of Yahoo,
--------
CAmHttpSocket http;
TCHAR *ts = http.GetHeaders(_T("http://www.yahoo.com"));
CString str = ts;
AfxMessageBox(ts);
}
--------
in the message box, I can only get
--------
HTTP/1.1 200 OK
--------
I can not get other headers (Content-Length, and cookies etc).
Can you tell me how can I get all of the headers?
Have a nice weekend,
George
|
|
|
|
|
The headers received depends on the webserver. Many webservers will only respond with a minimal subset and may also change headers (like the document's last-updated timestamp) to fool you.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Thanks, Ravi pal!
I use "curl" command in Linux and can see all the headers, but
by using this tool, I can only see one of the headers.
I wondered whether I have miss-used the lib?
Can you check my code?
Cheers,
George
|
|
|
|
|
What function are you using to send an HTTP request? Some of the IE technologies don't allow you to get the response header.
Todd Smith
|
|
|
|