|
Use memset() instead of strset()
--Mike--
THERE IS NO THERE IS NO BUT THERE IS
MAGIC PIXIE DUST BUSINESS GENIE CODE PROJECT
Homepage | RightClick-Encrypt | 1ClickPicGrabber
"Which comes first, the bug or the stress?" -- Chris Maunder
|
|
|
|
|
|
why????????
|
|
|
|
|
Hi, I get an error when i want to compile an empty C# form...
C:\C++\WindowsApplication1\licenses.licx Could not transform licenses file 'licenses.licx' into a binary resource. The format of the file 'lc.exe' is invalid.
What is that???
|
|
|
|
|
I'm not sure but I did a search on Yahoo / Google and found someone with the same problem, they said that they deleted the license file then rebuilt and it fixed their problem.. maybe try renaming the file to .old or something like that and try to re-compile..
Rob
Whoever said nothing's impossible never tried slamming a revolving door!
|
|
|
|
|
Found this too.. http://support.dundas.com/Articles/ArticleBody.asp?ArticleID=713
It also says to delete the file from the project..
Whoever said nothing's impossible never tried slamming a revolving door!
|
|
|
|
|
I want to create some checkboxes dynamicaly from code and I want them tranparent. The problem is that I tried to create them from resource with the trasparent atribute (WS_EX_TRASPARENT) but it still didn't work. Anyway my problem is to create them dynamically. Any ideas, sugestions ?
|
|
|
|
|
WS_EX_TRASPARENT style does not make it transparent, just tells window to paint control after children. I am sure you can find plenty custom draw samples on this and others websites.
brian
|
|
|
|
|
Handle WM_CTLCOLORBTN and in your handler, call SetBkMode(TRANSPARENT) on the HDC that is passed in the message's wParam .
--Mike--
THERE IS NO THERE IS NO BUT THERE IS
MAGIC PIXIE DUST BUSINESS GENIE CODE PROJECT
Homepage | RightClick-Encrypt | 1ClickPicGrabber
"Which comes first, the bug or the stress?" -- Chris Maunder
|
|
|
|
|
hi,
How can I check if the mouse cursor is leaving a child-window? (using api)
bye
chris
|
|
|
|
|
Hmm, same as everywhere else SetCapture(HWND);
|
|
|
|
|
yes, but I need a "onMouseOver" effect for a button (sees if the mouse is leaving the child window with no mousebutton pressed) which always works. But I can't always have the capture. SetCapture only works fine when I have a "onMouseClick" effect.
bye
chris
|
|
|
|
|
I believe WM_MOUSEMOVE is what you need.
|
|
|
|
|
You did not post very good description....
TrackMouseEvent is what you want.
|
|
|
|
|
TRACKMOUSEEVENT t_MouseEvent;
t_MouseEvent.cbSize = sizeof(TRACKMOUSEEVENT);
t_MouseEvent.dwFlags = TME_LEAVE | TME_HOVER;
t_MouseEvent.hwndTrack = m_hWnd;
t_MouseEvent.dwHoverTime = 1;
::_TrackMouseEvent(&t_MouseEvent);
you will now receive the WM_MOUSEHOVER and WM_MOUSELEAVE messages, the last one is the one you want
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
thanks Gregor S.! but it doesn't work here. I uses exactly the code you postet on WM_CREATE of the window (OS: Windows ME). _TrackMouseEventcalled returns no error. But the messages are not sent. I also checked it with Spy++.
any suggestions?
|
|
|
|
|
The cursor has to actually be in your window before you call TrackMouseEvent() , so you call TrackMouseEvent() in your WM_MOUSEMOVE handler.
--Mike--
THERE IS NO THERE IS NO BUT THERE IS
MAGIC PIXIE DUST BUSINESS GENIE CODE PROJECT
Homepage | RightClick-Encrypt | 1ClickPicGrabber
"Which comes first, the bug or the stress?" -- Chris Maunder
|
|
|
|
|
As you know the name of all running process appear in "windows task manager" (Ctrl+Alt+Del ),now
how can i delete the name of my App from this list (really silly question )?
english isn't my native language ,please excuse me for bad comments.
Thanks.
|
|
|
|
|
make ur app as a windows service
CodeTheDreams();
|
|
|
|
|
zarrin wrote:
As you know the name of all running process appear in "windows task manager" (Ctrl+Alt+Del ),now
how can i delete the name of my App from this list (really silly question )?
Try calling ModifyStyleEx( 0, WS_EX_TOOLWINDOW ) for the App window. This will stop it appearing in the Alt+Tab list, an I think Task Manager. You need to ensure it doesn't break anything in your app. There maybe other wasys to do what you want as well. Search the articles here on CP, MSDN and try Google.
Neville Franks, Author of ED for Windows. www.getsoft.com
Make money with our new Affilate program
|
|
|
|
|
Use the RegisterServiceProcess API function to remove your app name from the list.
This removes your app from the list:
RegisterServiceProcess(NULL, 1);
This makes your app visible in the list again:
RegisterServiceProcess(NULL, 0);
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
zarrin wrote:
how can i delete the name of my App from this list
In other words - you want to create a "hidden" process, aka "spyware" or worse.
Please go away.
|
|
|
|
|
|
When the MDI framework opens a document, its main window gets a title like "docname.raw".
When I open a new view over the same document, the last opened winodow has the title like "docname.raw:1".
If I want to change that text from "docname.raw:1" to something like "docname.raw - RED CHANNEL", where I have to call the SetWindowText()?
Or, is it the right method to be called?
Thanks
|
|
|
|
|
You need to overide: CChildFrame::OnUpdateFrameTitle(). You do the same thing in your CMainFrame to take control of the app title bar. That's what I do in ED (see sig).
Neville Franks, Author of ED for Windows. www.getsoft.com
Make money with our new Affilate program
|
|
|
|