I wonder if anyone knows how I can call a function if a document of my type is double clicked to launch my application? I have made my document types associated with my application but it only launches my program when those are double clicked. I want to read in the files content and display it in a window when that happens. I wonder what WM_COMMAND this would fall under.

Thanks for any help with this.

my guess is that the filename is passed to your program as an argument to WinMain(), much like argv in main().

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.