|
What would be the best method for printing to the screen without flickering? I tried using GDI but it still flickers.
I want to *draw* lines to the screen. The only prob is that I want it intended to be run with a DirectX game which flickers every second.
What would be the best way to do it?
|
|
|
|
|
|
Using IsClipboardFormatAvailable function to check CF_OWNERDISPLAY
if (IsClipboardFormatAvailable(CF_OWNER_DISPLAY))
{
//Process...
}
Thanks in adavnce
|
|
|
|
|
Is there a question in here some place?
|
|
|
|
|
Using IsClipboardFormatAvailable function to check CF_OWNERDISPLAY
if (IsClipboardFormatAvailable(CF_OWNER_DISPLAY))
{
//Process...
}
Thanks in adavnce
|
|
|
|
|
I have a dialogue box which works fine then I add a CRichEditCtrl then it fails to create.
Any suggestions ?
This is VC6.0 by the way.
Thanks.
Elaine
The tigress is here
|
|
|
|
|
Did you init the richedit control with AfxInitRichEdit2()?
|
|
|
|
|
|
Tom,
thanks, I put AfxInitRichEdit() in InitInstance() and it works.
Elaine
The tigress is here
|
|
|
|
|
You're very welcome, Tigress. - K loves the nick, by the way
|
|
|
|
|
Hi everyone,
I'm creating an edit box as child window of a list view ctrl to edit a subitem's text. When the edit box is created, it is invisible, although it has the WS_VISIBLE style set... I have to press some key to change the text of the edit box to make it visible.
What is wrong?
Regards,
Alex
Don't try it, just do it!
|
|
|
|
|
Add the WS_BORDER style, debug the CreateWindow function, if no error succed, and the problem persist, try using ShowWindow function.
|
|
|
|
|
I did, but that didn't change anything
CreateWindow does succeed, but the control is still hidden until I press a button to change it's text.
Don't try it, just do it!
|
|
|
|
|
Hi,
Try the SetWindowPos() function,and set its position on top of your listbox:
YourEditBox.SetWindowPos(&CWnd::wndBottom, 0, 0, 0, 0,
SWP_NOMOVE|SWP_NOSIZE);
Regards,
Eli
|
|
|
|
|
Hi everybody.How can i get the entire path of an aplication when its excecuted??. For example, when the user runs my aplication, i want in the WM_CREATE message, call the function GetAppName created by my and get C:\....\myApp.exe
|
|
|
|
|
CString GetExePath()
{
CString str;
TCHAR szEXEPath[MAX_PATH];
GetModuleFileName ( NULL, szEXEPath, MAX_PATH );
str = szEXEPath;
CString s1,s3;
int pos = str.ReverseFind( '\\' );
CString s2;
s2 = str.Left( pos+1 );
return s2;
}
This should get you started.
|
|
|
|
|
|
No problem good luck coding.
|
|
|
|
|
While smesser's technique works (using the reversefind), I prefer using the _splithpath so here's an alternative:
TCHAR buff[MAX_PATH];
GetModuleFileName(NULL, buff, MAX_PATH);
char drive[2];
char dir[MAX_PATH];
char fname[MAX_PATH];
char ext[MAX_PATH];
_splitpath(buff, drive, dir, fname, ext);
|
|
|
|
|
Hey
How to request data from an URL and display this data into an editbox or static text?
thanks in advance
|
|
|
|
|
URLDownloadToFile will download the page to a file. You can then open and display the file
URLDownloadToCacheFile will download the page to a cached file where you can access the data
By the way, I think VC++ MVP Michael Dunn has a really nice article on this site showing how to use the URLDownloadToFile function. You should be able to search and find it easily enough.
|
|
|
|
|
okay thanks alot, I will give it a try....
|
|
|
|
|
Hi everybody.
I want to make an application, that its added to the start menu by itself. If any body can explain me how i can make that, i will be gratefull.
|
|
|
|
|
As the Start menu simply displays folder entries, I would imagine that you could simply create an entry in the desired folder. For example, if you wanted to create an entry for the user tomarcher, you would add the entry to the c:\documents and settings\tomarcher\start menu folder. If you open the documents and settings folder you can see all this or if you right click the start menu and select Explore you can easily see where your entries would go.
[EDIT] Note that what I'm saying is a "manual" way of doing things. There might be a specific API for doing this that someone else can share with us.
|
|
|
|
|
The start menu itself is just a user directory. Usually C:\Documents and Settings\%USER%\Start Menu\ but you should call SHGetSpecialFolderLocation with CSIDL_STARTUP, then you can copy a shortcut to this path.
|
|
|
|