|
hi, anyone can help me?
I have a MDI app, now need to make all the CMDIchildWnd windows floating outsite the MDI frame, like a dialog. i tried to call SetParent(CWnd::GetDesktopWindow()). it seens work, but bring me two new issues: the child window get a icon in task bar, and it crash when i tried to resize or close it, the error exist in CMDIChildWnd::GetMDIFrame(). what is going on? does CMDIChildWnd limit its parent to CMDIFrameWnd?
Any proficients can help me? thanks a lot.
->
|
|
|
|
|
I find that by creating a new frame and loading it wil the OnNew() event works. Its not a child frame in the true sense but it loads in a new external window. However I do not know if this is what u want.
"If at first you don't succeed.....you must be installing Windows..."
Windoze CP - Windows without the cr*p (Now with automatic bug eliminator!)
Hey so what if I'm a geek! Byte me!
|
|
|
|
|
sorry, Jonny. i didn't catch your mean. "not a child frame in the true sense but it loads in a new external window"?
|
|
|
|
|
Write a new cpp file with a new Window in it. Then call it from the OnNew() function with ShowWindow()
"If at first you don't succeed.....you must be installing Windows..."
Windoze CP - Windows without the cr*p (Now with automatic bug eliminator!)
Hey so what if I'm a geek! Byte me!
|
|
|
|
|
A VARIANT which is an array of VARIANT's, surely ?
If you have 50-60 global variables, you're bound to burn in hell anyhow. Globals are rarely necessary, almost always a bad design, and 50-60 is just an incredible achievement IMO.
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
Half the reason people switch away from VB is to find out what actually goes on.. and then like me they find out that they weren't quite as good as they thought - they've been nannied. - Alex, 13 June 2002
|
|
|
|
|
Christian Graus wrote:
If you have 50-60 global variables, you're bound to burn in hell anyhow
I hear you
It is Illogical to define an inventor by his invention
|
|
|
|
|
Create a new ATL object and add properties to the object that return the global variables.
It's probably the easiest way to do it, although it is a bit of a hack.
Michael
"Eureka" is Greek for "This bath is too hot"
|
|
|
|
|
Michael P Butler wrote:
Create a new ATL object and add properties to the object that return the global variables.
An ATL object with 60 properties sounds bad to me!
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
|
|
|
|
|
It's not many more than your standard ActiveX control. You could even just use methods with multiple out parameters.
Good to see you back Nish.
Michael
"Eureka" is Greek for "This bath is too hot"
|
|
|
|
|
Michael P Butler wrote:
It's not many more than your standard ActiveX control
But those properties are set at design time, aren't they? And I doubt if it is advisable either! Anyhow, I might be wrong! My COM awareness is still pretty raw, despite Mike Dunn's noble attempts via Sonork
Michael P Butler wrote:
Good to see you back Nish.
I was never gone, was I? I was hoping my soul would still hang around here
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
|
|
|
|
|
Nishant S wrote:
But those properties are set at design time, aren't they?
Properties can be set at run time or at design time. You can specify properties to be get only, so you can't set them at all. A property is just a wrapped method really.
Nishant S wrote:
I was never gone, was I? I was hoping my soul would still hang around here
You hadn't posted for a while, so I assumed you had taken a break. Although a browse of the forums shows you've been here, just not been as prolific with your postings.
Michael
"Eureka" is Greek for "This bath is too hot"
|
|
|
|
|
Hi, I was wondering if anyone knows how to access (wav)files (on a cd-rom) that are shown as *.cda?
The file it´self is shown as 1kb large (although it is just 44 bytes long, as it is the wav header).Is there anyway I can access the file (like drag and drop or copy) as a normal wav file (i.e. like the alternative cdfs.vxd under Windows 9x os´s ?)
Thanks in advance
Phil
|
|
|
|
|
The cda files are references to the start/finish of a track. Audio CD's are different to CD-ROMs in the way they store stuff. You will need some kind of ripping software. Windows Media Player 7+ or RealOne Player will do this.
"If at first you don't succeed.....you must be installing Windows..."
Windoze CP - Windows without the cr*p (Now with automatic bug eliminator!)
Hey so what if I'm a geek! Byte me!
|
|
|
|
|
I was tinking of doing the "ripping" myself, so far I´ve found out that in the cda file is the start and end sector of the "music", the track number and a few other things (time in minutes, seconds etc.). Is there any way to read the cd directly i.e. low-level api ?
|
|
|
|
|
How to zip and unzip files easily? Does anybody know
some easy library (lib/dll)
|
|
|
|
|
Yes, it's called zlib. Plenty of info on the web. I've never used it myself, but I'm told it works well.
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
Half the reason people switch away from VB is to find out what actually goes on.. and then like me they find out that they weren't quite as good as they thought - they've been nannied. - Alex, 13 June 2002
|
|
|
|
|
Check out the Info Zip site [^], you should find everything you need there
Dylan Kenneally
London, UK
|
|
|
|
|
Look for Mr Dracz's 'Zip and UnZip the MFC way' here at CodeProject.
"If at first you don't succeed.....you must be installing Windows..."
Windoze CP - Windows without the cr*p (Now with automatic bug eliminator!)
Hey so what if I'm a geek! Byte me!
|
|
|
|
|
hi
i changed comboboxex style from CBS_DROPDOWNLIST to CBS_DROPDOWN
sometimes happends it not draws text into edit box (clears background only?)
when i jump to another (full sreeen) program and back (== full redraw) all is fine
i found
CEdit *pEdit = GetEditCtrl();
if(pEdit)
{
pEdit->Invalidate();
}
into OnDrawItem helps but it seems to me not normal
reading
LONG ws = GetWindowLong(GetSafeHwnd(), GWL_STYLE);
DWORD es = GetExtendedStyle();
gives me CBS_DROPDOWN and 0
but spy displays CBS_OWNERDRAWFIXED|CBS_NOINTEGRALHEIGHT too
any ideas?
thanks
t!
|
|
|
|
|
how to detect how many members in multicast group?
I'm sorry for my English! ^_^
|
|
|
|
|
|
chenwhenlong wrote:
I'm sorry for my English!
That's OK, but we have no idea what the hell you're talking about. What is a multicast group ?
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
Half the reason people switch away from VB is to find out what actually goes on.. and then like me they find out that they weren't quite as good as they thought - they've been nannied. - Alex, 13 June 2002
|
|
|
|
|
IP Multicast [MCAST] is an internetwork service that allows IP datagrams sent from a source to be delivered to one or more interested receiver(s).
I guess chenwhenlong wants to know about IGMP, the Internet Group Management Protocol. Maybe this page contains some useful information.
|
|
|
|
|
I want to check whether the current user has privilege/rights to read a file.I need info on the "right" API to use for this purpose.
I came across, CreateFile, GetFileSecurity,GetKernelObjectSecurity. I'm a bit confused over to which one to use. Also this is the first time I'm goin thru the security stuff.
thanks
Kannan
|
|
|
|
|
GetFileSecurity() is better
make sure abt READ_CONTROL_ACCESS
Renjith-The CPian.
|
|
|
|