|
Does ShowWindow (FALSE) help when used in your dialog?
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
No, ShowWindow(SW_HIDE) does not work
|
|
|
|
|
It should... but ok.
Then... what about getting the DesktopRect and moving the dialog with MoveWindow (...) or with SetWindowPos(...) outside the visible area?
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
Nelek wrote: It should... but ok.
he is right, SW_HIDE will not work for Dialog bix, reason behind it is that when OnIntDialog complete it call it show the Dialog Box. so you have write some other mechanism to do so.. see here http://www.codeproject.com/dialog/dlgboxtricks.asp[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
|
You have access to the command line arguments at startup.
If you determine you don't want a GUI window to show then you shouldn't
show the window.
Create your main window without the WS_VISIBLE style. If you want the main
window to show, use ShowWindow(SW_SHOW).
If your main window is a modal dialog, don't call DoModal().
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark Salsbery wrote: If your main window is a modal dialog, don't call DoModal().
he seems to programming in OnInitDialog instead of OnInitInstance
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
hai..,
i am trying to create an MSMQ. in this i am having char* string value....now i want to convert it to LPWSTR string ...how to convert this...
is any one knows reply me....
Born to win...!
|
|
|
|
|
|
Try ::mbtowcs
And be sure to read the texts about conversion linked in that MSDN-Article.
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
Have you considered the A2W() macro?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
thanks for ur help dears,
i solved the issue..
Born to win...!
|
|
|
|
|
jhwurmbach wrote: Try ::mbtowcs
little correction brother:- it is mbstowcs
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi guys
How to detect cd presence in CD Drive.if any code is available that is greatful.
Thnaks in advance
RYK
|
|
|
|
|
|
see if the following logic works.
say for exmple, your CD drive is "G"
_chdir("G:");
_findfirst();//not sure about the parameters. find them out. otherwise i have to refer my backups.
if find first detects something, then, cd is available.
otherwise not.
simple.
------------------------------------------------
Suggestion to the members:
prefix your main thread subject with [SOLVED] if it is solved.
chandu.
|
|
|
|
|
What about a Blank CD is in? :P
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
|
Nelek wrote: What about a Blank CD is in?
humm than write it
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
ufff... for that I have to code a film-download, save it and burn it... Im lazy :P
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
Nelek wrote: ufff... for that I have to code a film-download, save it and burn it... Im lazy
for me game writing will do.. [ ]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
If you download and play with my article Detecting when Drives are added or removed[^], then you will have a handler for WM_DEVICECHANGE.
Putting a breakpoint in, I notice that WM_DEVICECHANGE gets called with a parameter of DBT_DEVICEARRIVAL when a CD is inserted, and the drive has spun up, and DBT_DEVICEREMOVECOMPLETE when the CD is ejected. Both of which I handle nicely!
Detecting if it's blank or not would be a different question, but my code will solve the problem you have.
Iain.
|
|
|
|
|
hi,
How to change text color color of menu ?
Thanks & Regards
|
|
|
|
|
|
thanks for your reply. it is also useful for me.
|
|
|
|