|
I have not tried it, but it seems that you should try to use "invalidate();"
Hope this helps...
|
|
|
|
|
Because you draw, but you didn't force Windows to redraw your screen. Use Invalidate() or InvalidateRect(NULL) to do that after painting
|
|
|
|
|
Is there any way to see if a computer is a member of a domain, and if it is and there's multible domains, which domain(s) it can log on to?
I'm only coding for Win2k/XP...
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
|
I have been looking at those functions, but if there are more than one domain on the network, I can enumerate all of them, but I can't see which the computer can log on to
I mean, if you have domain1, domain2 and domain3. Domain1 and domain2 trust each other.
Now we have a workstation which is in domain1, but it can also log on to domain2 because of the trust.
If I use the net* functions to enumerate the domains, I get all 3 domains but I only want domain1 and domain2...
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
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
|
|
|
|