|
Hallo,
maybe someone have the same problem and knows the solution.
I have derived my own class from CPropertySheet.
Than i subclass the Apply Button in the OnInitDialog() function
with
m_ButtonApply.SubClassDlgItem(ID_APPLY_NOW,this);
I do this to change the look of the Button.
under VC2003 this works fine.
Now i compile the application with VC2005 and after pressing the apply button inside the app i
get the original look from the apply button, not the skinned look after subclassing.
After open the PropertySheet Dialog it looks well, but after clicking the button the Windows style is back.
I believe the baseclass destroy the original button and create a new one ?!?
Maybe or maybe not. I tried out a lot of things, for example to subclass again after diferent WindowMessages and so on.
Nothing works!
Has anybody an idea whats the reason and what i make wrong?
|
|
|
|
|
Some paiting routines have changed in VS 2005. You got to enforce a redraw or a draw a "pressed" look. Check/implement the WM_MOUSE* messages.
Greetings from Germany
|
|
|
|
|
Hi,
I am new in DDK but when I incule some files , so many errors appears.
Error 44 error C2146: syntax error : missing ';' before identifier 'InterfaceReference' D:\WINDDK\2600\inc\ddk\wxp\video.h 1362
Error 53 error C2146: syntax error : missing ';' before identifier 'InterfaceReference' D:\WINDDK\2600\inc\ddk\wxp\video.h 1382
Error 62 error C2146: syntax error : missing ';' before identifier 'InterfaceReference' D:\WINDDK\2600\inc\ddk\wxp\video.h 1443
Error 68 error C2146: syntax error : missing ';' before identifier 'InterfaceReference' D:\WINDDK\2600\inc\ddk\wxp\video.h 1500
Error 74 error C2146: syntax error : missing ';' before identifier 'InterfaceReference' D:\WINDDK\2600\inc\ddk\wxp\video.h 1559
Error 47 error C2146: syntax error : missing ';' before identifier 'InterfaceDereference' D:\WINDDK\2600\inc\ddk\wxp\video.h 1363
What are these errors and how to solve?
Thanks.
Every new thing you learn,Gives you a new personality.
|
|
|
|
|
i'm doing a lot with DDK at the moment, working on a NDIS driver.
i only use VS 2005 as my IDE, i dont build or compile the project in VS2005, you need to use the DDK builder for your target platform.
the SDK and DDK have some files with the same name but are different.
so if you want to use the builder you will probably have to remove references to the SDK.
|
|
|
|
|
Hello all!
The environment:
We have a CTreeCtrl derived class that has tooltips.
The CTreeCtrl is part of a CMainframe that has a second view.
There is a Controller class that does all the message handling (derived from
CFormView) and a view class derived from CTreeCtrl.
The problem is:
Anytime the mouse hovers above a tooltip of a selected treeCtrl item,
the treectrl won't accept any accelerator keys.
Tried "solutions":
We tried to destroy the Tooltips in Pretranslate Message, which seemed
to work at first, but had curious effects looking more exact on it.
We also tried to handle the accelerators in PreTranslateMessage of the controller class,
but that doesn't work properly either.
Somebody an idea how to solve this?
|
|
|
|
|
just see that i forgot to add:
- Visual C++ 6.0
- Windows XP Pro
|
|
|
|
|
Did you try to handle WM_CHAR and WM_KEYUP messages in your CTreeCtrl class, instead of using accelerator table?
|
|
|
|
|
Yes, i tried to filter WM_KEYUP in PreTranslateMessage, but it had strange effects.
But you think of handling it in OnMsg?
|
|
|
|
|
phyrex wrote: but it had strange effects
I have done this myself, and it worked fine. What "strange effects"?
|
|
|
|
|
The functions handling the accelerators did no longer work.
e.g. the ranaming of nodes was not possible and i could not
figure out why they were no longer called.
Because CancelToolTips() did not work (the tooltip still was shown)
i called EnableToolTips(FALSE) and then EnableToolTips(TRUE)
|
|
|
|
|
what exactly have you done? probably i'm just doing wrong something...
|
|
|
|
|
when i had an IShellFolder pointer, how can I get the name and icon of this shell object?
|
|
|
|
|
I have written a new GINA dll in order to replace the default gina dll of microsoft. It uses smart card for logging. I want to know about the threats of replacing gina dll.I mean that how an attacker can break this security feature and enters the system without smart card or such things.
|
|
|
|
|
d'you have any question to ask here sir ?
|
|
|
|
|
I think I have asked my questions. What are the threats now that I have replaced msgina.dll with my GINA dll? For example one of the ways to attach such a mechanism is by editing the registry key value. what are other threats?
|
|
|
|
|
MozhdehQeraati wrote: For example one of the ways to attach such a mechanism is by editing the registry key value. what are other threats?
1. for Registry Key changing for MSGINA.dll you must ahev administrator access, are you providing Admin access, once user logged in
2. Threat are same as of Normal Login Box, if hacker know about Gina, he must be knowing how to break it. he he he
"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
|
|
|
|
|
toxcct wrote: d'you have any question to ask here sir ?
MSGINA.dll is a dll which help you to make custom login and logged out screen for Windows.! it's advanced concept and generally top notch company use to control login access on computer
"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
|
|
|
|
|
Hi all,
Semaphore give us the following behavior
count thread state
----------------------------
3 -> no wait
2 -> no wait
1 -> no wait
0 -> WAIT
However, I am looking for some tool which enable me to do this :
count thread state
----------------------------
3 -> WAIT
2 -> WAIT
1 -> WAIT
0 -> no wait
I know that I can achieve my objective with the combination of :
while(WaitForSingleObject(semaphore, 0) == WAIT_OBJECT_0) {
WaitForSingleObject(event, INFINITE);
}
When the other instances start, they each increments the semaphore
with ReleaseSemaphore(). When they exit, each decrements the semaphore
counter and fires the event.
The problem with this approach is, the first instance would hang if
any of the other instances terminates abnormally.
Any better suggestion, which I can achieve my objective by just using a single primitive tool?
Thanks
|
|
|
|
|
Jeffrey Richter has written about this here.
|
|
|
|
|
I have a region object of 'CRgn' class. How can I resize this region?
|
|
|
|
|
Resize the region, the content of the region, with zoom, without...?
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
|
|
|
|
|
I Want to scalling only the region area by CRgn.
|
|
|
|
|
CRgn rg;
rg.SetRectRgn(x,y,x2,y2) or rg.SetRectRgn(LPCRECT)
is that what your after?
|
|
|
|
|
Oh no i have used this. It creates a rectangle like CreateRectRgn(LPRECT) function but use no memory . It performs no scalling.
|
|
|
|
|
ANyway this can be done. I don't know any API are there .
by using a simple idea, u will get the points from region (GetRegionData) .And try scaling those coordinates by simple multiplying. I hopes it will work.
If u can Dream... U can do it
|
|
|
|