|
Now maybe I depart from reality or enter the zone of wishful thinking.
I just read about Perforce - appears that I need a server. The less infrastructure the better.
I will admit that I like my repository as a file based system - it's simpler. Perhaps I'm
asking for mutually exclusive features.
Subversion: interesting, but still requires a server.
Am I stuck with having to go as a server? Can I run Perforce as a local application?
C. Gilley
Will program for food...
Whoever said children were cheaper by the dozen... lied.
|
|
|
|
|
hi,
can anyone tell how to display images in the browser with the help of CHttpServer and CHtmlStream classes when i use them in an ISAPI extension dll. i have the name of the image file and i want to display the image in the same browser window.(i.e. when i click the get button)
thanks
aditya
|
|
|
|
|
Hi, I am writing a program where I need to keep a dozen modeless dialogs in a specific z-order (Dlg1 is always behind Dlg2, which is always behind 3, etc..) This concept is similar to layers in powerpoint or photoshop except I want to do it with dialog windows.
First I set up an int array which indexed the order I wanted (so 3,2,4,1 would be Dlg3 behind Dlg2...) Then I set up on all the dialogs:
SetWindowPos(prevWnd, x,y,0,0 SWP_NOSIZE|SWP_NOACTIVATE);
where prevWnd is found by looking up the id in the array.
However, this does not work as when I click on a dialog, it always activates the dialog I clicked on and move its z-order in unexpected ways. (So I don't even know what SWP_NOACTIVATE does exactly.)
I tried using the SWP_NOZORDER style within the Dialog class but then the dialog is always brought to the foreground if I click on it.
How would I write a z-order manager that will always "lock" my dialog windows in a specific z-order?
Also a very simple question, what does the pWndInsertAfter in the SetWindowPos mean exactly? Is the pwia in FRONT or in BACK of the target window? because it always seem to change in my program. Thanks!
|
|
|
|
|
pWndInsertAfter tells windows what z-order position a windows should have. I'm sure you know programs where you can select that the main window should stay in the foreground. That's ment by pWndInsertAfter.
Don't try it, just do it!
|
|
|
|
|
Hello,
I have a program that sends keys (words to be exact) to Excel or Notepad. I'm currently using SendInput() which works fine except on some computers. For example two identical machines running XP with Office 2003 could result in one working with my program and the other not. So this is a mystery to me. One problem is that my program loses focus (or rather sets the focus to the target application) yet in Microsoft's On-Screen Keyboard application which also sends keys to a target program the program never has the focus. Does anyone know how this can be achieved? Also has anyone had any similar experiences with SendInput() or sending keys to another program?
Any help/advice in this matter is greatly appreciated.
Thank you,
Al
|
|
|
|
|
Use SendMessage(..., WM_CHAR...) instead as it is not affected by the target window losing focus.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
Thank you David, I'll give it a shot. But I'm still mystified as to how Microsoft manages not to get the focus on their On-Screen Keyboard application. I wonder if they're using SendMessage(..., WM_CHAR...) as well.
Al
|
|
|
|
|
al_in_the_city wrote:
I wonder if they're using SendMessage(..., WM_CHAR...) as well.
Use Spy++ to find out.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
I think the keyboard sends untranslated messages...
Don't try it, just do it!
|
|
|
|
|
|
Without using Doc/View facilities, I want that before printing i can preview first on the screen my printing.
What to do ?
I am using Visual C++ 6.0
I learn my self
|
|
|
|
|
How can I send my printing to outlook for sending it to someone by e-mail.
Thanks
I learn My self
|
|
|
|
|
See here for examples of CDO, MAPI, and SMTP.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
I can I send my printing to outlook for sending it to someone by e-mail.
Thanks
I learn My self
|
|
|
|
|
???
Don't try it, just do it!
|
|
|
|
|
Thanks for your Help, because i have printed for my first time.
But I have a problem, same things on my dialog are dimmed, like page from ... to ..., selection . Why ?
I learn My self
|
|
|
|
|
mikobi wrote:
But I have a problem, same things on my dialog are dimmed, like page from ... to ..., selection . Why ?
Because they have been disabled. To enable them, use EnableWindow(TRUE) .
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
This my print fonction, it is still dimmed, what o do again ?
void CMainFrame::Onlit()
{
// TODO: Add your command handler code here
CDC dc;
CPrintDialog printdlg(false);
if(printdlg.DoModal() == IDCANCEL)
return;
printdlg.EnableWindow(true);
HDC hdcprinter = printdlg.GetPrinterDC();
dc.Attach(hdcprinter);
DEVMODE *MyPrintMode;
MyPrintMode = printdlg.GetDevMode();
dc.CreateDC(printdlg.GetDriverName(), // Ignored for Printer DC's
printdlg.GetDeviceName(), // The only required item for Printer DC's
printdlg.GetPortName(), // Ignored for Printer DC's
MyPrintMode);
DOCINFO docinfo;
::memset(&docinfo,0,sizeof(docinfo));
docinfo.cbSize = sizeof(docinfo);
docinfo.lpszDocName = _T("lits");
bool bprintingOK = dc.StartDoc(&docinfo);
CPrintInfo Info;
Info.m_rectDraw.SetRect(0,0,dc.GetDeviceCaps(HORZRES),dc.GetDeviceCaps(VERTRES));
if (bprintingOK < 0)
{
AfxMessageBox("L'Imprimante n'est pas initialisée");
}
else
{
if (dc.StartPage()<0)
{
AfxMessageBox(" Ne peut démarrer la page");
dc.AbortDoc();
}
else
{
dc.SetMapMode(MM_TEXT);
// dc.TextOut(Info.m_rectDraw.left ,Info.m_rectDraw.right , _T("Hello World"),12);
dc.TextOut(500,50, _T("Richard Mikobi Mingambengele"));
dc.EndPage() ;
dc.EndDoc();
GlobalUnlock(MyPrintMode);
}
}
}
I learn my self
|
|
|
|
|
mikobi wrote:
This my print fonction, it is still dimmed...
How can a function be dimmed? Please explain.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
It is not the function that is dimmed but my printing dialog options from ... to... and select
|
|
|
|
|
Hi,
I need a utility that displays all the colors that you get from GetSysColor. There must be some simple freeware app somewhere that just does this for you!?!
Joel Holdsworth
|
|
|
|
|
What event is sent when I click on an Edit Control that is in a Dialog box?
I want a messagebox to appear when I click on the edit control.
Thanks!
|
|
|
|
|
i think this is not the right answer, but you could try with EN_SETFOCUS
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
You can detect focus change via EN_SET/KILLFOCUS. However, to capture LBUTTONDWN, you will need to subclass the edit box.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
Do you mean that I capture EN_SETFOCUS... display the messagebox and then with SendMessage deliver EN_KILLFOCUS.
Cause I tryed to capture EN_SETFOCUS and I manage to display the messagebox but it appears 2 times in a row.. strange.
|
|
|
|