Click here to Skip to main content
15,893,487 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Can't open more than 16 documents in my application Pin
PJ Arends5-Jan-06 18:28
professionalPJ Arends5-Jan-06 18:28 
GeneralRe: Can't open more than 16 documents in my application Pin
brdavid6-Jan-06 6:06
brdavid6-Jan-06 6:06 
Questionaccessing non-static variables Pin
tonyro2-Jan-06 13:37
tonyro2-Jan-06 13:37 
AnswerRe: accessing non-static variables Pin
PJ Arends2-Jan-06 15:09
professionalPJ Arends2-Jan-06 15:09 
QuestionFlashWindowEx Pin
Dody_DK2-Jan-06 10:55
Dody_DK2-Jan-06 10:55 
AnswerRe: FlashWindowEx Pin
PJ Arends2-Jan-06 15:15
professionalPJ Arends2-Jan-06 15:15 
GeneralRe: FlashWindowEx Pin
Dody_DK2-Jan-06 23:39
Dody_DK2-Jan-06 23:39 
GeneralRe: FlashWindowEx Pin
Gavin Taylor3-Jan-06 6:32
professionalGavin Taylor3-Jan-06 6:32 
You've probobly still got a REALLY old version of the platform SDK, you've got two options, either download[^] the latest version or access the FlashWindowEx function on the fly using GetProcAddress[^].

If you choose the later option, you'll need something like:

/* Taken from the MSDN website*/
typedef struct {
    UINT  cbSize;
    HWND  hwnd;
    DWORD dwFlags;
    UINT  uCount;
    DWORD dwTimeout;
} FLASHEXINFO, *PFLASHEXINFO;
	
#define FLASHW_STOP         0
#define FLASHW_CAPTION      0x00000001
#define FLASHW_TRAY         0x00000002
#define FLASHW_ALL          (FLASHW_CAPTION | FLASHW_TRAY)
#define FLASHW_TIMER        0x00000004
#define FLASHW_TIMERNOFG    0x0000000C
	
typedef BOOL (WINAPI *PSFLEX)(PFLASHEXINFO);
	
	
static PSFLEX pFlashWindowEx = NULL; // Pointer to actual function
static BOOL initFlash = FALSE; // Loaded status
	
BOOL uiFlashWindowEx( HWND hWnd, UINT uCount /* Flash Count */, DWORD dwFlags /* check SDK */ )
{
	if ( ! initFlash )
	{ // Not loaded yet
		HMODULE hDLL = NULL;
		hDLL = LoadLibrary( TEXT( "user32.dll" ) );
		if( hDLL )
		{
			pFlashWindowEx  = ( PSFLEX ) GetProcAddress( hDLL, "FlashWindowEx" );
			initFlash = TRUE; // Loaded OK
		}
	}
	
	if ( pFlashWindowEx == NULL ) 
		return FALSE; // Not Supported
	
	FLASHEXINFO fwi;
	ZeroMemory( & fwi, sizeof( FLASHEXINFO ) );
	fwi.cbSize = sizeof( FLASHEXINFO );
	fwi.dwFlags = dwFlags;
	fwi.hwnd = hWnd;
	fwi.uCount = uCount;
	fwi.dwTimeout = 0L;
	return pFlashWindowEx ( & fwi );
}


Once done, just use uiFlashWindowEx( hWnd, 3, FLASHW_TRAY ); or whatever


Gavin Taylor
w: http://www.gavspace.com



-- modified at 12:37 Tuesday 3rd January, 2006
GeneralRe: FlashWindowEx Pin
Dody_DK3-Jan-06 7:47
Dody_DK3-Jan-06 7:47 
QuestionTooltip on editbox Pin
mehrdadov2-Jan-06 6:29
mehrdadov2-Jan-06 6:29 
AnswerRe: Tooltip on editbox Pin
Ravi Bhavnani2-Jan-06 8:40
professionalRavi Bhavnani2-Jan-06 8:40 
QuestionError reading from com port Pin
nitgonz2-Jan-06 5:02
nitgonz2-Jan-06 5:02 
AnswerRe: Error reading from com port Pin
krmed2-Jan-06 5:34
krmed2-Jan-06 5:34 
GeneralRe: Error reading from com port Pin
John R. Shaw2-Jan-06 19:26
John R. Shaw2-Jan-06 19:26 
GeneralRe: Error reading from com port Pin
nitgonz3-Jan-06 2:55
nitgonz3-Jan-06 2:55 
GeneralRe: Error reading from com port Pin
krmed3-Jan-06 4:44
krmed3-Jan-06 4:44 
GeneralRe: Error reading from com port Pin
krmed3-Jan-06 4:43
krmed3-Jan-06 4:43 
AnswerRe: Error reading from com port Pin
rajan.msmy2-Jan-06 18:09
rajan.msmy2-Jan-06 18:09 
QuestionToolBar ToolTip is blocked by whom? Pin
rajan.msmy2-Jan-06 3:36
rajan.msmy2-Jan-06 3:36 
AnswerRe: ToolBar ToolTip is blocked by whom? Pin
Owner drawn2-Jan-06 16:45
Owner drawn2-Jan-06 16:45 
GeneralRe: ToolBar ToolTip is blocked by whom? Pin
rajan.msmy2-Jan-06 17:59
rajan.msmy2-Jan-06 17:59 
GeneralRe: ToolBar ToolTip is blocked by whom? Pin
Owner drawn2-Jan-06 18:08
Owner drawn2-Jan-06 18:08 
QuestionHow to delay about 1/20 milisecond ? Pin
quangpk2-Jan-06 1:43
quangpk2-Jan-06 1:43 
AnswerRe: How to delay about 1/20 milisecond ? Pin
kakan2-Jan-06 3:18
professionalkakan2-Jan-06 3:18 
AnswerRe: How to delay about 1/20 milisecond ? Pin
babuprasath2-Jan-06 4:01
babuprasath2-Jan-06 4:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.