|
V. wrote: We were looking more at message types than real functions, that's why we didn't see it.
So you did not find the WS_VISIBLE style?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
yes we did, but MSDN was working against me
|
|
|
|
|
V. wrote: but MSDN was working against me
Yes, it seems that documentation has a negative effect on a large portion of the developer population these days. We see it here all the time.
led mike
|
|
|
|
|
so you mean we took the easy way out asking the forum, hoping that someone would know?
|
|
|
|
|
V. wrote: so you mean we took the easy way out
No, you took the path of least resistance. An act that becomes addictive for most people and surely results in calamity for a software developer. Something we witness here in these forums, e v e r y s i n g l e d a y.
Good luck, you're going to need it.
led mike
|
|
|
|
|
You have no idea what we did to look it up. I wanted to proove to the guy who replied that I at least took the effort to look it up in the first place instead of waiting until the answer fell into my lap...
led mike wrote: Something we witness here in these forums, e v e r y s i n g l e d a y.
I'm a member for over four years now, this place used to be much, much nicer ... (and NO I'm not the one making it a bad place)
My two cents...
|
|
|
|
|
led mike wrote: V. wrote:
but MSDN was working against me
Yes, it seems that documentation has a negative effect on a large portion of the developer population these days. We see it here all the time.
Ouch, I can feel the icicles hanging from that comment. Beware of frostbites.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
V. wrote: yes we did, but MSDN was working against me
I can understand you, Mr.Sun.
--Mr.Apple
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
In addition to what the other members said, IsWindowVisible[^] will return TRUE if your dialog has the WS_VISIBLE style. If your window is behind another window and not actually visible you will still recieve TRUE.
You can get around this by calling GetClipBox[^] which will return NULLREGION if your window is being completely clipped by another window. In Windows Vista GetClipBox will not return NULLREGION if DWM[^] is enabled because Aero performs blending/transparency effects.
Best Wishes,
-David Delaune
|
|
|
|
|
|
Hi,
I have written a serializable class.How to serialize the object of this class or where should (in which clas) the Serialize function declared in the serializable class be called over the object
Thanks in advance
Taruni
|
|
|
|
|
|
Unless you have not written a serializable class, then you should not bother about where to serialize your serializable-class subclasses instances unless serialization is meant to depend on some stuffs.A test rule is to wonder if it's OK to call serialization code from within the serializable-class subclass destructor.
"The Awaited Saviour", Mohammed Baqir Al Sadr
|
|
|
|
|
Hi all,
I need to create a pst file programatically using MAPI.
I tried it using oom but that pst is not crateing correctly.
Also tried following mapi code :-
CComPtr pMsgSvcAdmin;
ULONG ulFlags;
HRESULT hr;
hr = MAPIInitialize(NULL);
if (S_OK == hr)
{
hr = MAPIAdminProfiles(0, &m_pProfAdmin);
}
if( IsBadWritePtr(lRet, sizeof(LONG)) )
{
hr = E_INVALIDARG;
}
else
{
ulFlags = 0;
ulFlags |= fMapiUnicode;
hr = m_pProfAdmin->AdminServices(_T("exch_Destination"), NULL, NULL, ulFlags,&pMsgSvcAdmin);
if(S_OK == hr)
{
hr = pMsgSvcAdmin->CreateMsgService(_T("MSUPST MS"), _T("My PST File"), NULL, ulFlags);
}
}
but no luck, CreateMsgService is giving MAPI_E_NOT_FOUND
any pointer would be helpful
thanks
Ranu
|
|
|
|
|
ranu791985 wrote: I need to create a pst file programatically using MAPI.
Why? It sounds like you are going about your project incorrectly.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
I am using a a derived class from CRichEditCtrl which I got from codeproject.
My application is in mfc.
I am displaying a url in the form of hyperlink in my RichEdit control. Now When I click the url in the RichEdit control i am able to open the same url in a web browser.
My problems starts now as my cursor position is now at the place in the URL where i clicked as a result of which the new text does not apper in the RichEDit Control in a new line but at the place where i click.
Suppose the url is http://www.live2support.com
and i clicked at the url with cursor position at p of http an dsuppose the incoming new text for RichEdit control is hello
the it is displayed as
httphello://www.live2support.com
Please help me.
Thanks In Advance.
Dhiraj
|
|
|
|
|
So change the insertion point before inserting new text.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
can u tell me how it can be done.
|
|
|
|
|
Use the SetSel() method.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Hi, everybody, this is my first query in Code Project, so pardon me for any mistakes.
I hv a MDI project. Currently it opens binary image files and displays its data, in few different child frame windows. I m using splitter windows in child frames class(derived from CMDIChildWnd), so i hv some experiance in using them.
My requirement is such that i want a two splitter window in CMainFrame class (derived from CMDIFrameWnd). Pane 1, contains view of a class derived from CRichEditView and Pane 0, should be able to handle child windows as before. For this i created
virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
in CMainFrame class and tried to create splitter windows in it. But i m not sure what class view to pass to CreatView function for Pane 0. This is what i have coded:-
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
if (!m_wndTestSplitter.CreateStatic(this, 2, 1))
{
return FALSE;
}
if(!m_wndTestSplitter.CreateView(0, 0, RUNTIME_CLASS(???), CSize(320, 400), pContext))
{
m_wndTestSplitter.DestroyWindow();
return FALSE;
}
if (!m_wndTestSplitter.CreateView(1, 0, RUNTIME_CLASS(COutputWnd), CSize(320, 400), Context))
{
m_wndTestSplitter.DestroyWindow();
return FALSE;
}
return TRUE;
}
|
|
|
|
|
Member 4635088 wrote: if(!m_wndTestSplitter.CreateView(0, 0, RUNTIME_CLASS(???), CSize(320, 400), pContext))
Do you need to place the second splitter window here in "???" ?
|
|
|
|
|
yes, but i don't know what class to put in here, so that it handles child frames as if cmainframe was being used without splitter windows.
|
|
|
|
|
|
Hello All
i am working in Win32 VC++ using VS 6.0
My window works fine and is Minimized in TaskBar....
if i click the mouse on Desktop (i.e not on my window).....is there any way so that my window come to know that the mouse has clicked down......i.e in short i want to send the mouse events to my window from anywhere.
Thankx In Advance
regards
aabid
|
|
|
|
|
Aabid wrote: is there any way so that my window come to know that the mouse has clicked down......i.e in short i want to send the mouse events to my window from anywhere.
You need a global mouse hook [^].
See also this article [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
modified on Wednesday, November 19, 2008 6:40 AM
|
|
|
|