|
Thanks Joaquin!!
It gave me a bright Idea!!!
Best Regards,
John.
|
|
|
|
|
how set Cursor spot posotion at Center of the Cursor, not at (0,0)?
SetCursor( AfxGetApp()->LoadCursor(IDC_CURSOR1));
....
Thank you!
|
|
|
|
|
Usually in resource editor, you have a button "Set Hotspot". I see that you have a custom cursor, so I don't think you need to do this at runtime
Romeo JUNCU
|
|
|
|
|
|
Hello,
I'm using SetWindowPos with SWP_SHOWWINDOW | SWP_NOREDRAW | SWP_NOCOPYBITS to move a window contains a picture to a specific position. If I do not use the SWP_NOREDRAW flag everyting's fine but I can see the window covered by the resizing window redraws somewhere while the window is resizing. If I use SWP_NOREDRAW the covered window will not redraw and the old window's edge still on the screen if the new size is smaller. How do I fix this problem? I tried to do:
::InvalidateRect(NULL, NULL, FALSE);
RECT rcFrame = { x, y, nNewWidth, nNewHeight };
::InvalidateRect(NULL, &rcFrame, FALSE);
but the covered window draws each time I resize the window which makes the screen blinks.
Do you have any idea how to resize a window without letting the covered window redraw the area that's going to be covered?
Thanks,
Hiu Sing Ngai
|
|
|
|
|
Hi all,
I have a little problem, I need to build an application to set the password for the network and the one for the workstation to the same password,
Can any one help me on my way or tell me were to find the code.....
Here's the program flow:
1-checker runs in the background after boot up
2-user is prompted for the network (W2K Active Dir) password change
3-user changes password
5-changes are made to the register (somewhere)
6-Checker checks if registery keys are changed
6-When changed then the checker pops up with dialog box
7-Dialog box asks to confirm the password again
8-the confirmed password is used to change the local account
Note : the "checker" is the program to be build
Thanks in advance
|
|
|
|
|
oke,
I now found out that I have to write a .dll to sit on the domain controller and return a value to the account, but does anyone know some program for this or how to write it?
And then I need to process to catch the value (like a sniffer?) and set that to put the password into the local account on the machine.
Is this possible?
Thanks
regards,
Cornelis
|
|
|
|
|
I have a class that works with CPropertyPage classes!
So, the problem is that I need the value of the resource id (IDD) of the property page.
I need the following value:
enum { IDD = IDD_XXX }
How can I get this value at runtime???
I have only pointers to CPropertyPage classes!
CPropertyPage* pPage;
pPage->...
Is there any member function, like pPage->Get??? to get the IDD (resource id) of the property page!
Daniel
---------------------------
Never change a running system!
|
|
|
|
|
Personally, I would create my own class derived from CPropertyPage, and override the constructor. You could store the resourceid in a member variable, and then call the base class constructor.
jon
Signature space for rent. Apply by email to....
|
|
|
|
|
I have found a way:
pPage->m_psp.pszTemplate;
pszTemplate:
Pointer to a dialog box template to use to create the page. This member can specify either the resource identifier of the template or the address of a string that specifies the name of the template. If dwFlags includes the PSP_DLGINDIRECT value, this member is ignored.
Daniel
---------------------------
Never change a running system!
|
|
|
|
|
Hi friends!
I am using DirectSound for capturing audio. I am using DirectSoundCaptureEnumerate() API to enumerate avialable audio capture dev. I have included dsound.h but still i am getting error that this function is
'undeclared identifier' plz tell me what to do, exactly where to include dsound.h in MFC application confused:
|
|
|
|
|
Which function is undeclared? Post the error messages you get.
Gero
|
|
|
|
|
In the case you have a separate DirectX SDK installed, make sure to add the include and library directories in msdev tool Directories options, in FIRST position.
(otherwise, msdev will compile and link with those from its own installation, which may be too old).
She's so dirty, she threw a boomerang and it wouldn't even come back.
|
|
|
|
|
please, somebody, help me!
i really need to view in one dialog/view more than one rich edit views. each of them may contain images.
i cannot make CRichEditCtrl to show images and i cannot show more than one CRichEditView in one place (they must locate one under another).
please, if someone has ANY idea how to do this, help me!
Dmitry Timin
|
|
|
|
|
If you find out how to do it, please let me know, or write an article on it, cause im having the same problem!
|
|
|
|
|
Hi all,
My problem is this. I have a user viewing a web page on my intranet and that user has an ActiveX control running on that web page. The ActiveX control needs to get some sort of information about the currently logged in user and to send it to my server and the server must then authenticate that user against the domain.
I don't want the user to have to type in a user name or password, I want the user to view the web page, the activeX control to send some security information (SID?) to the server, the server then validates against the NT domain then the user is automatically logged into the intranet system.
Do you know what sort of information the ActiveX control needs to get and how I could do all of this?
Thanks in advance, Phil
|
|
|
|
|
IE has integreted authentification, unlike Netscape. This should allow you to log, authenticate, certify someone without showing a single box.
She's so dirty, she threw a boomerang and it wouldn't even come back.
|
|
|
|
|
Problem is I have a Apache web server with J2EE on it on a Tomcat thingy.
My clients are IE.
So you see why I need an ActiveX control to send something to the web server to be authenticated...
Any ideas?
Cheers, Phil
|
|
|
|
|
If you can't rely in integrated authentification (explained here[^]) which to be honest assumes a IE - IIS pair, you may end up doing simple https auto-form submit.
I would see you create a https page (from any web server, like the ones you mentioned), build a form, and use the ActiveX to fill and submit this form. Just a thought.
She's so dirty, she threw a boomerang and it wouldn't even come back.
|
|
|
|
|
|
Well... no unfortuantly.
Basically the problem is this - the user is logged into his machine at work as per normal then they open their browser and navigate to the intranet web page. Which happens to be served from an Apache web server running J2EE/JSP etc.
Now - as I know the user is currently logged into the domain, why can't that users credientials be sent to the server in order to identify who that user is without the user ever having to enter their user name and password.
You see, once the user logged into the domain when the booted their computer they should have a SID, why can't I then send that SID to the server to verify that user? If so - how?
Phil
|
|
|
|
|
philip andrew wrote:
Now - as I know the user is currently logged into the domain, why can't that users credientials be sent to the server in order to identify who that user is without the user ever having to enter their user name and password.
Because that machine does not belongs to the domain. That would be a huge security breach. If MS allowed what you're saying, as you navigate to any Web Site you could have your username/password stolen.
My latest articles:
Desktop Bob - Instant CP notifications
XOR tricks for RAID data protection
|
|
|
|
|
I'm trying to programatically print an app-generated temporary .txt file, wait until the file has been spooled to the printer, then delete the file. Here's what I'm doing:
generateFile (strFilespec);
long nStatus = (long) ::ShellExecute
(m_hWnd, "print", strPrintFile,
NULL, "", SW_SHOWNORMAL);
if (nStatus <= 32)
displayError();
deleteFile (strFilespec);
Because ShellExecute returns immediately after displaying the (unfortunately modeless) Print dialog, the file gets deleted before the user has an opportunity to respond to the dialog.
I could loop until I detect the absence of a top-level window named "Print" before deleting the file, but that solution reeks of cheddar. I also tried using ShellExecuteEx with the SEE_MASK_FLAG_DDEWAIT flag in the hope that I could the function to behave in a modal manner, but that didn't help.
Any ideas on how to spool a file to the printer in a modal manner would be greatly appreciated. Thanks!
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
You have the WIN32 spooler API here[^], allowing to enum printers and get the list of jobs.
Good luck!
She's so dirty, she threw a boomerang and it wouldn't even come back.
|
|
|
|
|
Thanks, Stephane. Unfortunately, I don't want to manually print the file (would've used standard MFC in that case). It's actually an .HTML file and I'm using the "print" verb to print it. I have a feeling I might end up using the "wait for window to close" hack.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|