|
You can experiment with the Transparent checkbox in the controls properties (Extended Styles tab)... not sure if thats what you want, but I think its the closest thing to 'Bring to Front'...
|
|
|
|
|
I have a split view which is declared like:
CMainFrame *pFrame = (CMainFrame *)(AfxGetApp()->m_pMainWnd);
pFrame->m_wndSplitter.ReplaceView(0,0,RUNTIME_CLASS(CMyFormView),CSize(500,320));
pFrame->m_wndSplitter.ReplaceView(1,0,RUNTIME_CLASS(CMyFormView2),CSize(500,500));
In one of the formview's i have a list control, and a combo box which need to be populated. When I try to overload either OnInitialUpdate(), or OnActivateFrame() they never get called (im assuming because of the split window)..
So what function should be overloaded to populate my combobox and list? Any Suggestions?
thanks for the help!
-dz
|
|
|
|
|
What's 'ReplaceView'? Anyway, you may want to call CFrameWnd::InitialUpdateFrame to get OnInitialUpdate called.
Tomasz Sowinski -- http://www.shooltz.com ** If you're going to rape, pillage and burn, be sure to do things in that order. **
|
|
|
|
|
Hi there,
I don't want start a big war between VC++ 6.0 and VC++ .NET
But i have question of VC++ programmers about it !
Question:
WHAT IS YOUR REASON FOR USING VC++ .NET ?
DO YOU WANT TO CHANGE TO VC++ .NET ?
hmmm, let me open the problem:
WHEN I MUST USE VC++ .NET ?!!!
Please tell me your idea
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
no point in studying something that will be outdated soon.. thats why i ordered .net.. although the loss of classwizard has still left a bad taste in my mouth
-dz
|
|
|
|
|
I'll be moving over to VC++.NET IDE when I have finished my current projects. The reasons to move. Well, mainly because VC6 won't be getting updated. Some of the new ATL Server stuff looks like it might be useful. New MSDN will only integrate into the new IDE.
I'm not 100% convinced about the new IDE yet but I know I'm going to have to learn it sooner or later.
I won't be developing many apps for the .NET framework in C++ as my customers aren't asking for it yet.
If you are still developing C++ apps for Windows then there is no rush to move over to .NET IDE.
Michael
|
|
|
|
|
Using VC6 SP5 ...
I'm trying to hook the CFileDialog with the following :
...
CFileDialog dlg(FALSE);
CHAR fileBuf[256] = { "output.ext"};
dlg.m_ofn.nMaxFile = 256;
dlg.m_ofn.lpstrFile = fileBuf;
dlg.m_ofn.lpstrDefExt = "ext";
dlg.m_ofn.Flags = OFN_EXPLORER|OFN_ENABLEHOOK;
dlg.m_ofn.lpfnHook = (LPOFNHOOKPROC)OFNHookProc;
...
and I'm getting an ASSERT in DLGFILE.cpp (mfc sources )
...
if (nResult)
ASSERT(pThreadState->m_pAlternateWndInit == NULL);
...
The Callback is
UINT_PTR CALLBACK OFNHookProc(HWND hdlg,
UINT uiMsg,
WPARAM wParam,
LPARAM lParam
)
{
if ( uiMsg == WM_NOTIFY )
{
NMHDR *phdr = (NMHDR *)lParam;
switch (phdr->code)
{
case CDN_FILEOK:
{
TCHAR filename[255];
DWORD dwResult = SendMessage( (HWND) GetParent(hdlg),
CDM_GETSPEC,
(WPARAM) 255,
(LPARAM) filename );
std::wstring s(filename);
if ( !ValidateFileName(s) )
{
AfxMessageBox(L"Invalid file name");
::SetWindowLong( hdlg, DWL_MSGRESULT, 1 );
return 1;
}
}
}
}
return 0;
}
Anything that I missed ? seems that all the flag are ok?
The question is that when I type "<" in the filename text field, I don't get the WM_NOTIFY in the callback, and Windows pops a standard dialog saying that what I typed is invalid, but when I type ">" I do get the WM_NOTIFY and goes into my code ??! and both caracters are invalide filename caracters?!!? Any clue on that ?
Thanks for any info.
Max.
|
|
|
|
|
Can't you just override CFileDialog::OnFileNameOK? MFC does hooking for you - you don't need to play low-level.
Tomasz Sowinski -- http://www.shooltz.com ** If you're going to rape, pillage and burn, be sure to do things in that order. **
|
|
|
|
|
Gawd, I feel like a dork !!! Arrggggg!
Sorry!
Max.
|
|
|
|
|
help with downloading from a login/pass web using php
hi, i would like to do something like that:
the website targeted use PHP to login with a username and a password.
and then, some menu is shown, (all using .php or .php3 extension for viewing pages.)
the fact is, if i do not log with my user/password within internet explorer, i can't even retrieve files i want using internet explorer.
but, even after logging in, and when i am able to download any file ending with .php3?someparam=somevalue&another=anothervalue etc...
when i use a offlinebrowser application to save all pages i want, the external application finally download a page which says i'm not logged on. although i can still download that page opening an internet explorer windows... (and setting the offline browser 'spider' to identify itself as IE doesn't solve the problem.)
so i have figured out that i need something, which will log in using a specified username/password, and then, will download all files linked from a single url. (and that need to work with either .php or .php3?x=1&pass=2 files...)
how can i do that?
|
|
|
|
|
User identity is usually maintained across a browsing session by means of cookies kept at the client side. I gues what's happening is simply that your offline browser does not keep cookies.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Michel
If I am wrong or said something stupid, I apologize in advance
|
|
|
|
|
My app is crashing with a First Chance exception in ExitInstance().
The bizarre part is that it crashes on a line similar to this:
CMyClass* m_pObject;
m_pObject = CMyClass::allocInstance();
if (m_pObject)
Yes, it crashes on the if statement. To add to the mystery, the assembly code looks like this:
0041B431 call dword ptr [__imp__CoUninitialize@0 (008f1db0)]
What the heck is *that* all about?
This didn't start happening until I added a DLL that uses COM to communicate wirth DirectShow. The DLL contains calls to CoInitialize and CoUninitialize.
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Is it a COM object ? Maybe you've called CoUninitialise and then you're trying to access a smart pointer ?
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"I'm somewhat suspicious of STL though. My (test,experimental) program worked first time. Whats that all about??!?!
- Jon Hulatt, 22/3/2002
|
|
|
|
|
Nope, the pointer in question is about as far from the COM stuff as it can get.
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Can you put the breakpoint and check what's in m_pObject? Is it a valid pointer?
Tomasz Sowinski -- http://www.shooltz.com ** If you're going to rape, pillage and burn, be sure to do things in that order. **
|
|
|
|
|
It is a valid pointer (not NULL, and not 0Xcdcdcdcd).
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Well, in such case it's best to 'Rebuild All', but I'm sure you've already done this
Is this a debug version without any optimizations?
Tomasz Sowinski -- http://www.shooltz.com ** If you're going to rape, pillage and burn, be sure to do things in that order. **
|
|
|
|
|
Yeah...
Wierd problem, eh?
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
John Simmons / outlaw programmer wrote:
Wierd problem, eh?
It is. All you can do now is to step into disassembly at the beginning of the function and proceed instruction by instruction
Tomasz Sowinski -- http://www.shooltz.com ** If you're going to rape, pillage and burn, be sure to do things in that order. **
|
|
|
|
|
I read somewhere you shouldn't use CoInitialize with either MFC or dll's, can't remember which. Try using AfxOleInit()
Joel Lucsy (jjlucsy@ameritech.net)
|
|
|
|
|
Hi there does anybody now how i can make a text string in a label scroll from left to right and vice versa?????
Please someone lend a hand
ThankS!!!
The meek shall inherit the earth.....but they wont get the ball...
|
|
|
|
|
I'm sure there are controls on CP for that, but basically you need to set up a timer and move the text when the timer goes off.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"I'm somewhat suspicious of STL though. My (test,experimental) program worked first time. Whats that all about??!?!
- Jon Hulatt, 22/3/2002
|
|
|
|
|
I want to add debug information to my release build. The obvious thing to do is enable debug info in my link. However, instead of getting just a few 100 bytes added to my DLL for the reference to the PDB, I am getting 20-30k. This is contrary to what the MS minidump article states.
So obviously I am doing something wrong. All I want to do is create a PDB file with the basic symbols contained in the DLL much like MS does with their symbol files.
Anybody have any clues?
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
|
|
|
|
Can you have a look at your .dll with dumpbin? You'll be able to check which section actually grows.
Tomasz Sowinski -- http://www.shooltz.com ** If you're going to rape, pillage and burn, be sure to do things in that order. **
|
|
|
|