|
Hi Allen !
Can i use of it in my .HLP file ?
Because my help file is in .HLP mode (Context help)
and my help not .CHM mode !
So, can i use of it in .HLP ?
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Your applications .hlp file is compiled when your project is compiled (if any of the files have changed). If you look in the Hlp sub directory of your project, you should see some .rtf files call AfxPrint.rtf and AfxCore.rtf. These are the default help topic for a typical application. You need to edit one of these. I normaly do this in the VC editor, but when I open the file, I change the Open as option in the file open dialog to Text so it doesn't hide all the .rtf format strings.
If you open one of these files, you can add a new topic with a hot spot to a different topic in it. You will then need to re-compiler yout .hlp file and make sure its in the same directory as your applications .exe file.
You can compile the .hlp file manually yourself, by using the tool MS V6->MS VC tools->Help workshop You should then browse to your projects .hpj file in the Hlp directory. You can then access the options to compile the .hlp file when you do changes to the .rtf files. Once compiled copy the generated .hlp file to the release/debug directory and test it with your application.
Roger Allen
Sonork 100.10016
|
|
|
|
|
Thanks for your helps
Best Regards,
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Hi all,
How can i show Help Context icon in my dialog title bar ?
Please help me !
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
To get the ? help icon in a dialog, in the resource editor you need to set the More styles - Context help check box. You need to do this when the dialog resouce is selected, not one on the controls on the dialog. Make sure also that the System menu option is also checked in the styles tab.
Roger Allen
Sonork 100.10016
|
|
|
|
|
Thanks for your helps !
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Hi All,
I have a pretty simple CEdit subclass that paints its background with a texture bitmap. When I use it in multi-line mode, with more text than will fit in the window, scrolling upward doesn't cause WM_ERASEBKGND to be sent, and so the top lines are drawn over the old content (yuk!).
I've tried handling WM_CTLCOLOR- doesn't make any difference. Any ideas?
Thanks
NB
|
|
|
|
|
can't you refresh the whole window? It doesn't work?
|
|
|
|
|
hi lucky...
that would be a perfect solution, but in response to what message?
|
|
|
|
|
I think you could refresh all the window by handling the ON_SCROLL message or something like that
|
|
|
|
|
Hello,
I am trying to repaint just a small rect of my dialog.. The dialog has a Bitmap background and I have a static text (timer) that gets updated every second.. The problem is when it updated the static text it doesnt repaint the background so I get a bunch of numbers placed over the top of one another.. Looks really bad.. I can do a RedrawWindow() and it will repaint correctly but it repaints the whold dialog box (causes flickering) looks very anoying.. Im trying to just repaint a rect but I need the rect to be repainted just as well as if I were to do a RedrawWindow() on the whole dialog box.. this is what I have tried.
CRgn rgn;
rgn.CreateRectRgn(17,44,29,13);
CRect rect(17,44,29,13);
RedrawWindow(&rect, &rgn, RDW_INVALIDATE | RDW_ERASENOW | RDW_UPDATENOW);
I have tried several different flags but none of this seems to do the same thing as plain old RedrawWindow();
Any Ideas?
Rob
|
|
|
|
|
If you provide a region pointer, the rect pointer is ignored. Have you tried RDW_ERASE instead of RDW_ERASENOW, which would give you the defaults exactly as if you'd just done RedrawWindow(); ?
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
I changed the rect pointer to a null and used the RDW_ERASE with the RDW_INVALIDATE and it still doesn't redraw like RedrawWindow with out any params.. strange.
Not sure what this isn't working.
Rob
|
|
|
|
|
For my next project, I'd like to be able to see how many keys I've typed over the years and be able to compare this measure of geekiness with others. I don't necessarily need to know what is typed (though that would help any stats ideas in the future). Can anybody point me in the right direction for learning the ropes with global hooks and keytraps in Win32? I'll probably have followup questions for you too...
Thanks...
(BTW, this is sort of like the old uptimes.org, but on a different slant )
-Jason
|
|
|
|
|
Hi,
I am trying to develop an administration client (GNU) for mysql and I am looking to develop an interface similar to mssql 2000. I am going to want to have dynamic content in the pages so static html files won't work. Does anyone have any suggestions how to approch it. I have tried http://www.codeguru.com/ieprogram/HtmlMemory.html except this causes problems when you deal with a large amount of HTML you flood out the LPSTR variable. Is there a better tutorial out there regarding this?
Is there a better way to apporch this, or do you think I am doing something wrong?
|
|
|
|
|
|
You may want to consider hosting the MSHTML component yourself and use the IPersistStreamInit Interface together with a memory stream.
Since this is a stream, it does not have the cap like the string version. I can't remember exactly but I think the cap is something like 1024 Kbytes?
Cheers
Sidney
|
|
|
|
|
Hello,
Just for educational purposes I am trying to write an MP3 player.. I have implemented the stop, play and pause buttons plus volume control and a few other things.. I'm stuck on trying to figure out how I can display or determine the length of a song in seconds (I've looked through codeproject, codeguru and MSDN).. Anyone know a good place to start or does anyone have any samples of code on how to determine how long a song is and display it in a string?
Thanks,
Rob
|
|
|
|
|
Um... are you saying you've written a class that plays mp3's ? I don't suppose you're going to post it
As to your question, you can use DirectShow to get the length of a media file, and then do what you want with it. You just load the file and render it, but you don't play it, you just query it for it's length. If you want more info, it's at home, just remind me. I did it for a program that catalogs media files.
Alternatively there is a program on CP that does MP3 playing and displays the length, it's listed as an example of a skinable app, I forget the name/details. I remember it because I tried to get the mp3 playing code out of it, but it was in C, and that meant I couldn't play 2 mp3's at once ( I'm keen to be able to use mp3's instead of wav's for in game sounds ).
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
Thanks Christian,
I think I know of the program.. I'll take a look at it. When I'm finished I could post some code.
Thanks again!
Rob
|
|
|
|
|
Rob Jones wrote:
When I'm finished I could post some code.
That would rule. Is it class based ? Because my problem with the other code was that it's all globals so I couldn't create two instances of the mp3 decoder and have them play different files at once.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
It's not class based (yet).. I just started writing it yesterday morning.. I'll see how it turns out and I'll let ya know.
Rob
|
|
|
|
|
Christian Graus wrote:
I couldn't create two instances of the mp3 decoder and have them play different files at once.
Why would you want to play two mp3 clips together?
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
Nish is a BIG fan of Goran Ivanisevic
|
|
|
|
|
Nish [BusterBoy] wrote:
Why would you want to play two mp3 clips together?
One for each ear....
Actually, as I said, the idea was to play mp3's in game instead of waves. I've not done any game development for ages, but the idea is that I was working on a Direct Sound library, to simplify it all, and I'd like to be able to use mp3's because it allows my game to be smaller in size. It would also make it easy to add the ability to play your own music in game.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
hey christian
don't you think decoding mp3's in a game is a waste of cycles? i don't know for sure what the % of processor time is reqd to decode mp3's but it seems significant from all the software i have to do it
just a thought
---
"every year we invent better idiot proof systems and every year they invent better idiots ... and the linux zealots still aren't being sterilized"
|
|
|
|