|
How do you show your image I think IDC_PLACEHOLDER is an ID of a control if yo have any control you must declare a variable for it and use of ShowWindow
|
|
|
|
|
Could you solve your problem ?
|
|
|
|
|
Not problem if you cant declare a variable for your control(I dont think you have problem with declare) use of this code GetDlgItem(IDC_PLACEHOLDER)->ShowWindow( SW_HIDE );
What happens?
|
|
|
|
|
ibtt1 wrote: Does anyone know the code how to make Not Visible a picture frame when a radio button is pressed and then make visible again when another radio button is pressed?
Add control variable on Picture Control and use ShowWindow api to sho/hide control!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
Hi I am new in VC++ I want to work on a game I've downloaded a game engine named Irrlicht I've done what is written in its tutorials e.g including files, directories etc.. For example I have a file named Irrlicht.h with several other headers and its in other directory than VC++ projects directories. I include it properly but when I compile it, it says Irrlicht.h not found. I've included the directories Tools -> Options -> VC++ Directories, if I'm doing wrong please guide me through this. Any answer will be welcomed.
Nothing.
|
|
|
|
|
Ali Derakhshan wrote: I include it properly but when I compile it, it says Irrlicht.h not found.
Obviously not
Ali Derakhshan wrote: I've included the directories Tools -> Options -> VC++ Directories, if I'm doing wrong please guide me through this. Any answer will be welcomed.
If I understand the question correctly ...
What about #include "<dirName>\Irrlicht.h" // <file path>
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
My Blog: ^_^
|
|
|
|
|
If you're right then can you please provide a working example of that.?
Nothing.
|
|
|
|
|
is your game support windows plateform...i.e. is it graphics is windows compliant! since many game are mae in turbo c++ which is not compliant with MSVC
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
Does anyone know how to implement a tracker that will take either MM or inches? Let's say if I was to set a rectangle to 1 inch, I'll get 96 pixel. But setting 1.005 inches will also give me 96 pixel. Then I can move the tracker without losing the 1.005 inches. If I only get 96 pixel, then converting it back will only get 1 inch and I'll lose the .005 inch.
|
|
|
|
|
moonreflection2000 wrote: Does anyone know how to implement a tracker that will take either MM or inches?
As opposed to what?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Well, with CRectTracker. m_rect is only stored in pixel. That mean I can't really store 1.005 inch as the size.
|
|
|
|
|
Implement the tracker using double variables instead of int/long.
Only do integer conversions when necessary - like when converting to pixels.
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
has anyone used BrowseForFiles_demo project.
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
deeps_cute wrote: has anyone used BrowseForFiles_demo project.
This one[^] , if so then no, I haven't.
But what is your question about the demo ?
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
My Blog: ^_^
|
|
|
|
|
|
deeps_cute wrote: has anyone used BrowseForFiles_demo project.
Yes, I'm fairly sure that at least someone has.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
DavidCrow wrote: Yes, I'm fairly sure that at least someone has.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
deeps_cute wrote:
has anyone used BrowseForFiles_demo project.
google.. mam.. google! first need for every programmer
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
Hi chaps,
I have a CDialogBar that is most often used as a modeless floating (ie undocked) tool window.
My problem is that I want to intercept when the user clicks the little X in the top right of the title bar to close the dialog. To my surprise, Windows does not send my control WM_CLOSE or WM_SHOWWINDOW. In fact, it does not seem to send any Windows message that I can think of.
Does anybody know what (if any!) message it sends, or how to intercept this action?
Thanks,
Jim
|
|
|
|
|
Do you get a WM_SYSCOMMAND message?
Mark
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
I thought of that too - it's kind of on the system menu, perhaps it gets WM_SYSCOMMAND?
Nope.
I also tried WM_DESTROY out of desperation, it didn't get that either. I've drawn a total blank. Surely there must be SOME way to intercept this action?
|
|
|
|
|
Maybe this is a clue...
"Dialog bars are extensions to a main window and any dialog-bar control-notification messages,
such as BN_CLICKED or EN_CHANGE, will be sent to the parent of the dialog bar, the main
window."
I know it's in the MFC source somewhere....I can't seem to track it down. Maybe after the
caffeine kicks in.
Mark
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
Ah, now there's a new path to try - I'll give that a go next time I look at that dialog again.
Thanks,
Jim
|
|
|
|
|
Jim @ JCT wrote: h, now there's a new path to try - I'll give that a go next time I look at that dialog again.
SYSCOMMAND .. SC_CLOSE or have a look at this :- http://www.visualcpp.org/?p=39[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
dear all,
Now a doing a small project, in which I used MS FlexGrid to demonstrate my Data, so I would like to export these data from this Grid to Text file .txt and save them to my drive. Anyone know please show me more detail. Thank in advance all of you
|
|
|
|