|
i am working on one problem, in which i have to keep track on no. of message in a queue in a particular window. but there is no any such api availble which tell me what is current size of message queue.
so could anybody please help me to find out the size of the message queue in a win32?
Akshay Shingrup
|
|
|
|
|
Hi every body,
I have a Matlab toolbox use to extracing & matching fingerprint ( you can down load on the Mathworks.com with the key work : "fingerprint toolbox" ), then I used MATLAB COM builder to build a component. But, I don't know how to use it in VC++ 6.0 ?
Any body can help me ?
Please share ...
thanks a lot
Quang Dien
|
|
|
|
|
How can I get rid of "Ok Cancel and the rest of the buttons" on a property sheet.
Happy christmas friends. May the Love of My Lord and Saviour Jesus bring forth Joy and Happiness into your life too.
<marquee direction="up" height="30" scrolldelay="1" step="1" scrollamount="1" hspace="0" vspace="0">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
-- modified at 0:29 Monday 19th December, 2005
|
|
|
|
|
This article[^] will help you.
Regards,
Rajesh R. Subramanian
You have an apple and me too. We exchange those and We have an apple each.
You have an idea and me too. We exchange those and We have two ideas each.
|
|
|
|
|
Thanks.
I did try with ID_CANCEL but failed. Missed out on IDCANCEL.
lol
Rajesh R. Subramanian wrote: You have an apple and me too. We exchange those and We have an apple each.
You have an idea and me too. We exchange those and We have two ideas each.
Nice quote
Happy christmas friends. May the Love of My Lord and Saviour Jesus bring forth Joy and Happiness into your life too.
<marquee direction="up" height="30" scrolldelay="1" step="1" scrollamount="1" hspace="0" vspace="0">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
Hello all
Very simple / silly question, sorry.
In MFC SDI Application, how to set status bar / pane message from document class and view class?
Thanks for your time
Ravi
-- modified at 23:35 Sunday 18th December, 2005
|
|
|
|
|
Hi,
A simple way. Make m_wndStatusBar public in CMainFrame class.
Include "MainFrm.h" in YourView.cpp and/or YourDoc.cpp.
Type the following to change the text of the pane at 0 index:
<br />
CMainFrame *pFrame = (CMainFrame *) AfxGetMainWnd();<br />
pFrame->m_wndStatusBar.SetPaneText(0, "New Text");
If you want more flexibility, you need to change/or manipulate also with
a static array 'indicators' in MainFrm.h file, which sets the panes in the status bar.
--
======
Arman
|
|
|
|
|
Could somebody have a such kind of sample code.
I would like to implement it as downloading a video file from the HTTP Server,
and when you are downloading you wouldn't wait for completing it; instead, you
could watch it during downloading processing.
If someone could give me a sample code, or some reference websites.
Appreciate more, and thanks a million.
ACMTino
|
|
|
|
|
this was one of my friends final year project,
will check out if he has set if free on the web
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
Thanks for your reply, and where to find your friend's project
Could you do me a favor.
Thanks a lot.
ACMTino
|
|
|
|
|
I want to create a window using a dialog template without use DialogBox function. Is it possible? I'm not creating a MFC application.
I want to do it because I don't want to use 2 functions to control my application like WndProc and MyWindow function to receive the messages.
[www.bispenho.com]
|
|
|
|
|
bispenho wrote: Is it possible?
No
bispenho wrote: I don't want to use 2 functions to control my application like WndProc
Every windows app must have a WndProc function.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04
"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05
Within you lies the power for good - Use it!
|
|
|
|
|
|
SetDlgItemText(m_hWnd, nID, ...
SetDlgItemText(GetSafeHwnd(), nID, ...
SetDlgItemText(*this, nID, ...
SetDlgItemText(nID, ...
The last one is CDialog's (actually CWnd's) wrapper for SetDlgItemText.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04
"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05
Within you lies the power for good - Use it!
|
|
|
|
|
Hmm? None worked...
SetDlgItemText(m_hWnd, nID, ...
m_hWnd doesn't exist...
SetDlgItemText(GetSafeHwnd(), nID, ...
GetSafeHwnd() neither... I looked it up and it came out to be a member of CWnd, but it's not static...
SetDlgItemText(*this, nID, ...
error C2664: 'SetDlgItemTextA' : cannot convert parameter 1 from 'CMazzeeMapGrouperApp' to 'HWND'
SetDlgItemText(nID, ...
Doesn't exist either...
Do you know of another way? Thanks!
Lord Kixdemp
www.SulfurMidis.com
www.SulfurSoft.tk
[ftp://][http://][hotline://]tsfc.ath.cx
|
|
|
|
|
|
I have an app which always runs in the background (main window is hidden) and it's only visible cue to the user is an animated icon on the task bar. The icon is animated when the app is actively polling for information, and static when the app is running but no polling is taking place. Now according to the task manager my app is running the CPU at about 20% just to animate the icon. This is not so bad when the user is sitting at the computer but the app is designed to run 24/7 so I would really like to be able to stop the animated icon when the user is not there to see it (screen saver starting and or monitor turning off) and start it again when the user is there (screen saver stops and/or monitor turns on).
Is there a way to detect the screen saver starting and stopping or the monitor turning off and on from an app that is not the currently active app? WM_SYSCOMMAND with SC_SCREENSAVE is only recognized by the active app when the screen saver starts, not when it stops.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04
"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05
Within you lies the power for good - Use it!
|
|
|
|
|
SystemParametersInfo(SPI_GETSCREENSAVERRUNNING,...);
Take a look at these too...
1. SPI_GETSCREENSAVEACTIVE
2. SPI_GETSCREENSAVETIMEOUT
3. SPI_SETSCREENSAVEACTIVE
4. SPI_SETSCREENSAVETIMEOUT
could be useful.
<marquee direction="up" height="30" scrolldelay="1" step="1" scrollamount="1" hspace="0" vspace="0">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
Thanks, I will look at those. I was hoping that there was some message that would be posted to my app so that I would not have to poll those settings myself, but I think these will work.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04
"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05
Within you lies the power for good - Use it!
|
|
|
|
|
Hello,
I don't know what is wrong with my code. I got assertion of memory. Thank you very much for your help
In example.h
<br />
typedef MyType struct<br />
{ int one; int two};<br />
<br />
In my example.cpp:
<br />
void main(void)<br />
{<br />
std::vector<<MyType>> toto;<br />
toto.reserve(10);<br />
PlayWithToto(&toto);
toto.clear();<br />
<br />
} <= here I've got an assertion ! (even if I don't call toto.clear()<br />
void PlayWithToto(std::vector<<MyType>> *titi)<br />
{<br />
MyType temp;<br />
temp.one = 1;<br />
temp.two = 2;<br />
<br />
titi->push_back(temp);<br />
}
-- modified at 14:53 Sunday 18th December, 2005
|
|
|
|
|
Well.. what is the assertion?
--
Pictures[^] from my Japan trip.
|
|
|
|
|
Hello,
I've got a message box : exeption ... (in french : non gérée)
And the debugger stop in dbgrpt.c code :
#undef _CrtDbgBreak<br />
<br />
_CRTIMP void _cdecl _CrtDbgBreak(<br />
void<br />
)<br />
{<br />
DebugBreak();<br />
}<= THE DEBOGGER STOP HERE<br />
When I click F5, the debogger stop at :
<br />
CWnd* PASCAL CWnd::FromHandlePermanent(HWND hWnd)<br />
{<br />
CHandleMap* pMap = afxMapHWND();<br />
CWnd* pWnd = NULL;<br />
if (pMap != NULL)<br />
{<br />
pWnd = (CWnd*)pMap->LookupPermanent(hWnd);<br />
ASSERT(pWnd == NULL || pWnd->m_hWnd == hWnd); <= HERE<br />
}<br />
return pWnd;<br />
}<br />
Thanks you
|
|
|
|
|
If you look at the callstack, please navigate to the call frame just before _CrtDbgBreak() . _CrtDbgBreak() is just the function that invokes the debugger.
--
Pictures[^] from my Japan trip.
|
|
|
|
|
Hello,
Before the call to _crtDgbBreak() I've got this in the callstack :
msvcr71d.dll!_CrtDbgReport(int nRptType=2, const char * szFile=0x7c144c68, int nLine=323, const char * szModule=0x00000000, const char * szFormat=0x00000000, ...)
mfc71d.dll!AfxAssertFailedLine(const char * lpszFileName=0x7c144c68, int nLine=323)
mfc71d.dll!CWnd::FromHandlePermanent(HWND__ * hWnd=0x0026061a)
mfc71d.dll!AfxWndProc(HWND__ * hWnd=0x0026061a, unsigned int nMsg=15, unsigned int wParam=0, long lParam=0)
mfc71d.dll!AfxWndProcBase(HWND__ * hWnd=0x0026061a, unsigned int nMsg=15, unsigned int wParam=0, long lParam=0)
There is no call to a specific function in my code... only calls to AfxWnd...
Thanks you for your help
|
|
|
|
|
I'm not sure what has happened. It is clearly unrelated to your code. What type of project is it? MFC? You should create a console project, judging by the code you have shown us.
--
Pictures[^] from my Japan trip.
|
|
|
|