Hello people,
i'm a newcomer to the forum and so i'd like to greet everyone who's attending the forum ;)
I have coded an mp3 player using standard mfc classes,utilising listboxes etc.Now,after finishing the functions that i wanted it to have(more or less),i decided to start coding a skin and things like that to make it a bit fancier :) So i started reading some articles from codeguru site and i must admit that they are very nice.I have decided to begin with the easiest stuff first.I started to code a Splash Screen in a separate project and was succesful in doing so.Then,i wanted to code a generic mfc class that would allow generic creation of splash screens in many progs.
So,i created a class but i have a problem in getting windows messages(wm_paint and wm_timer in particular) that react with the modeless dialog i create.In my class,the constructor gets a pointer to parent CWnd AND the ID of new dialog that the user creates and then another function utilises:
Create(IDD_MODELESS_SPLASH_SCREEN,Wnd_parent)
to create and the modeless dialog,while another function appears it.Then a function is responsible for drawing a bitmap to the dialog,stretched or not.Once more the resource ID of the bitmap should be provided.
Up till here everything works as it should.Then i'd want to create a timer and process wm_paint messages.But,for some reason the modeless dialog does not react on any messages.Notice that when a new modeless dialog is created by the user,he WOULD NOT have to let MSVC create a new class that handles the dialog events and therefore i should do sth about it.I suspect that the reason for the events that do not react has to do with the dialog "binding" to my class...
Since i posted at the first place,grabbing the opportunity i'd also want what's the way to get the filename of the mp3 file(or any file of course) that i double click at and the default mp3 player is opened(that is my player which i've made default).I tried the commandline but it's not there.Maybe somewhere at the registry? Last but not least,is there a non-OS dependant(registry) way of designing a function that will make the mp3 player a default one ? I coded it for Win2k and while it worked fine there,it refused to work on winxp..
Sorry for making so many questions btw :0 And thanx for reading that far ! :)