|
ooooooo
i knew it would get icky with the security stuff
"even if my world is weird it's my world" biz stuff about me
|
|
|
|
|
Otherwise it would just be boring
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
You'll have to use some of the other APIs to check Machine / User access directly on the domains you are concerned with across the trust. If that doesn't get you deep enough, there are always the Authorization[^] APIs, but those are more for use deeper into the security model of NT/2k/XP.
It's pretty sticky and gooey when you dig into the network security aspects of NT/2k/XP.
|
|
|
|
|
Ok, so I am looking at the MSDN Library for July 1999 and I see this: BUG: CHtmlView Does Not Repaint Correctly in AppWizard MDI APP. Well this is very similar to the problem I was having, if I launched a new window with window.open in my html and closed the new window before it was done loading I had the same repaint problems. But I'm not using a MDI app. So I just added the WS_CLIPCHILDREN style like the article says and it fixes my problem . My question is, will this style affect anything else? Remember, I'm not using a MDI app.
Thanks,
Steve
|
|
|
|
|
I have use SetParent api function to set a application' main form as the child of another application's main form. The api returns TRUE. But the child window dosen't update UI until I minimize and restore the parent window. Anyone can tell me why? Thanks a lot.
bill
|
|
|
|
|
From MSDN:
Windows 2000: When you change the parent of a window, you should
synchronize the UISTATE of both windows. For more information, see
WM_CHANGEUISTATE and WM_UPDATEUISTATE. Maybe this is the problem.
rechi
|
|
|
|
|
|
|
When editing the parent dialog's properties, check Clip Children style.
rechi
|
|
|
|
|
Rechi, thank you very much.
Do you use any instant message tool?
bill
|
|
|
|
|
I use a CRectTracker on my WM_LBUTTONDOWN callback, and it's working ok, but the problem is that it eats my WM_LBUTTONUP, which I need to do additional processing.
Is it kosher to call PostMessage(hwnd, WM_LBUTTONUP ) at the end of the bottom down callback ? Or is there another way ? I've tried it, and luckilly, it works, I only receive one WM_LBUTTONUP, but it doesn't feel good !
void CTrackerTestView::OnLButtonDown(UINT nFlags, CPoint point)
{
TRACE( "CTrackerTestView::OnLButtonDown\n" );
CRectTracker tracker;
BOOL bRetVal = tracker.TrackRubberBand( this , point, true );
CView::OnLButtonDown(nFlags, point);
this->PostMessage(WM_LBUTTONUP );
}
Thanks!
Max.
|
|
|
|
|
Bad idea, you should let mouse messages live normally.
I'll recommend to check out a MSDEV sample code called "DrawCli" : fine implementation there.
Back to real work : D-24.
|
|
|
|
|
Yep, but different approach, they draw the rectangle by hand with DrawFocusRect.
maybe I'll change ALL ( sigh ) my code to see it it can be done that way !
Don't worry, it's not that bad !
Thanks.
Max.
|
|
|
|
|
hi,
i've got dll and lib files that i need to combine in my project.
the dll & lib were created in BORLAND env.
the thing is that the compilation works but the linker says:
"fatal error LNK1136: invalid or corrupt file"
1- is there any problem importing lib from Borland to visual?
2- how to import the lib?
love,peace and harmony to everyone!
|
|
|
|
|
You need a VC lib file, not a Borland.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
MS did a fine job of making lib files proprietary. You not only need a .lib file created by MSDEV, you also need it in the right MSDEV version (for instance .lib files created with MSDEV 6 won't (by default) link with MSDEV 5).
Back to real work : D-24.
|
|
|
|
|
You'll have to LoadLibrary() and GetProcAddress().
Signature space for rent. Apply by email to....
|
|
|
|
|
Hi,
I've got a problem with a multilanguage project. At application start I read all GUI strings from a file (this is a must because our customer wants to change the texts) inside memory. If the user changes the language at runtime I have to change all the GUI strings.
No my problem: how can I change the tooltip and statusbar texts for buttons inside a toolbar?
Best regards,
Patrik Müller
|
|
|
|
|
Every toolbar button should have a string table entry for it with the same ID. It will be of the form:
Status bar prompt\nTooltip to be displayed.
Now by default the CMainFrame class uses the GetMessageString() function to return the status bar prompt for menu/toolbar buttons and tooltips. You will need to override this function and re-direct the code to get the string that you want from your loaded list.
Take a look at the functions default implementation and modify your own version from that.
Roger Allen
Sonork 100.10016
I have a terminal disease. Its called life!
|
|
|
|
|
OK,
I'll try it if I got time.
Many thanks for your help!
Best regards,
Patrik Müller
|
|
|
|
|
Is it possible to hide and show the main menu
of a MDI application ???
I'd like to let the menu to be not visible as default
and to show it when the mouse goes on its position.
(See taskbar behavior)
What have I to do ?
Thanks a lot !!!;)
|
|
|
|
|
To hide:
p=GetMenu();
SetMenu(NULL);
p->DestroyMenu();
To show:
p=new CMenu;
p->LoadMenu(MAKEINTRESOURCE(IDR_MAINFRAME));
SetMenu(p);
delete p;
I've tested it on a SDI and i found a problem on closing the program: the frame always assumes that the menu is present and attempts to destroy it. Probably you must - sometimes formally - have the menu loaded before closing.
rechi
|
|
|
|
|
I have used your indication in my project but
I have found a problem:
the debug version of a MDI project verifies
the menu status and ASSERT if the menu is not
visible.
So I can use this functionality only in release
version...
What do you think about this problem ?
Have you got any other indication ?
Thanks a lot!!
|
|
|
|
|
Cristiano G- wrote:
Have you got any other indication ?
Modify this:
void CChildFrame::AssertValid() const
{
CFrameWnd::AssertValid();
} Notice that you have to be aware when loosing some MFC assertion stuff.
You'll be in charge and have more responsability.
rechi
|
|
|
|
|
Please don't flame me if this is obvious. ! I'm a MFC beginner, but long time programmer in various languages. Now I have to get to grips with MFC and custom controls quite quickly, in fact I thought I was doing quite well.. Until now.
OK,
I have a Test program that used a CSliderCtrl control. In the testDlg.cpp file I had a OnHScroll() method that handles SB_THUMBTRACK etc messages to update a value and set a static control to that value.
Now, I've replaced the CSliderCtrl with a CVMRotaryFaderCtrl from:
http://www.codeproject.com/miscctrl/RotaryFaderMFC.asp
All compiles and runs fine. However as far as I can see the OnHScroll() method is no longer called.
Where do I start here? Is the CVMRotaryFaderCtrl not sending HScroll messages ?
Any clues on how I go about getting this to work ?
Many Thanks for any help
Andy C
andy@r2-dvd.org
|
|
|
|