I was seeking the gethotspot api few months ago and never found it. it should be in the CURSORINFO struct but it isn't. If someone know a way to get this hot spot i'm very interested in too. I need it to remove a define in my code. Dimitri Rochette
Dimitri Rochette
Posts
-
Gets the coordinates of the cursor's hot spot -
Loading Bitmaps transparentif your talking about LR_LOADTRANSPARENT here is perhaps the answer. First of all LR_LOADTRANSPARENT does not load transparent image. it replace the first color by COLOR_WINDOW. COLOR_WINDOW is the backgroud color of edit,combobox... by defaut it's white. To change this color by another, you need to replace this color in your window theme. The second problem is that LR_LOADTRANSPARENT works only with 8bpp images. The easyest way to use real transparent images is to use CommonControls ImageList. If you only want to replace one backgroud color by another CommonControls CreateMappedBitmap is perhaps a best solution. Dimitri Rochette
-
BOOL vs bool ?i dont read every answers but bool is one byte or less. struct DemoSize1 { bool a; } sizeof (DemoSize1) is 1 byte; struct DemoSize2 { bool a; bool b; } sizeof (DemoSize2) is 2 byte; struct DemoSize3 { bool a:1; bool b:1; } sizeof (DemoSize3) is 1 byte; in the last case a and b share the same byte. Dimitri Rochette
-
ration buttonUsing Win32 SDK BOOL EnableWindow( HWND hWnd, // handle to window BOOL bEnable // enable or disable input );
-
Spin Control Problem!!!The "wrong way" is the default way for spin controls. you will have to use a SetRange32( int nLower, int nUpper ); Set nLower to the MAXIMUN set nUpper to the MINIMUM
-
How do i set a Radio Button's state in with win32 api's?SendMessage is Great but there is a macro which do the same BOOL CheckDlgButton( HWND hDlg, // handle to dialog box int nIDButton, // button identifier UINT uCheck // check state );
-
how to lock PC?there is NO solution if someone can open your PC case. The best solution is bios password and padlock on the case.
-
DLL hell. please help!If you want to allocate memory in a Dll and free this memory elsewhere you can use a GlobalAlloc / GlobalFree ( with the GMEM_FIXED flag you only have to change the alloc and the free lines ).
-
What color is gray?Hope this could help you. GetSysColorBrush http://msdn.microsoft.com/library/en-us/wceui40/htm/cerefGetSysColorBrush.asp GetSysColor http://msdn.microsoft.com/library/en-us/sysinfo/base/getsyscolor.asp
-
How do i fix a user breakpoint?if you allocate memory, then write something to it plus 1 byte or more. You could have a "user breakpoint" when you'll free the memory block.