|
Hello,
I am trying hard to show tooltips for controls that are enclosed by a group box using standard stuff of Windows.
I have noticed that if the group box is visible I get no tooltip whatsoever, if I make it invisible I get the tooltip.
Has anyone a good solution to this problem ?? I know that the group box is technically a camouflaged push button, but there must be a way to have both the group box and the tooltip visible.
PLS HELP ME !!!!!!!!!!!
Riccardo
|
|
|
|
|
Check the Z_order of your controls, and make sure that your controls come after the group box, that way they will appear to be on top of the group box, and hopefully the group box won't still the mouse messages.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
yes, but how can I control the Z-order of my controls ??
|
|
|
|
|
Did you ever find a solution for this problem? The Z-Order does not seem to make a difference.
Thanks,
John
|
|
|
|
|
What method would my fellow CPians recommend I use to interface with an SQL server. I don't need anything too complicated... just a basic way to connect and send and recieve data from the DB. There won't be any mad SQL statements [like the ones I had in my good damn DB exam!!]
Any help appreciated
"When a friend hurts us, we should write it down in the sand, where the winds of forgiveness get in charge of erasing it away, and when something great happens, we should engrave it in the stone of the memory of the heart, where no wind can erase it"
Nish on life [methinks]
|
|
|
|
|
ADO is OK. there are probably wrapper classes around, if you're not fond of playing with COM.
-c
Cheap oil. It's worth it!
|
|
|
|
|
Chris Losinger wrote:
ADO is OK. there are probably wrapper classes around, if you're not fond of playing with COM.
Not fond of COM at all.. hence I asked. Must have a look at ADO in more detail... it's been a while since I looked at it. No doubt they'll be loads of articals on it here
"When a friend hurts us, we should write it down in the sand, where the winds of forgiveness get in charge of erasing it away, and when something great happens, we should engrave it in the stone of the memory of the heart, where no wind can erase it"
Nish on life [methinks]
|
|
|
|
|
Brian Delahunty wrote:
just a basic way to connect and send and recieve data from the DB.
I don't know if I got your question correct.Anyway,If it is very very simple operation I do it with CRecordset class in MFC.But for most case I use COM.
Mazy
"The more I search, the more my need
For you,
The more I bless, the more I bleed
For you."The Outlaw Torn-Metallica
|
|
|
|
|
I'd prefer not be be using COM. I think ADO is probably the best way to go
"When a friend hurts us, we should write it down in the sand, where the winds of forgiveness get in charge of erasing it away, and when something great happens, we should engrave it in the stone of the memory of the heart, where no wind can erase it"
Nish on life [methinks]
|
|
|
|
|
Brian Delahunty wrote:
I'd prefer not be be using COM. I think ADO is probably the best way to go
ADO is a COM Api library !!! You could try to arrange a MFC wrapper classes ...
If not, the MFC class CRecordset as Mazy had posted works fine , it uses ODBC , contrary to ADO that uses OLEDB (COM low-level api)
Cheers,
Joao Vaz
A person who is nice to you, but rude to the waiter, is not a nice person - Natalie Portman (Padme/Amidala of Star Wars)
|
|
|
|
|
I apologise for my stupidity... I've never looked into it much. I relying on people to inform me at the moment as I'm too lazy to go researching...
Thanks for the help
"When a friend hurts us, we should write it down in the sand, where the winds of forgiveness get in charge of erasing it away, and when something great happens, we should engrave it in the stone of the memory of the heart, where no wind can erase it"
Nish on life [methinks]
|
|
|
|
|
Brian Delahunty wrote:
I apologise for my stupidity
Hey,man, you don't need to apologise for a thing that you didn't know .
Brian Delahunty wrote:
Thanks for the help
Your Welcome
Cheers,
Joao Vaz
A person who is nice to you, but rude to the waiter, is not a nice person - Natalie Portman (Padme/Amidala of Star Wars)
|
|
|
|
|
at the risk of appearing to be a fossil i use odbc
works for me
"... and so i said to him ... if it don't dance (or code) and you can't eat it either f**k it or throw it away" sonork: 100.18128 8028finder.com
|
|
|
|
|
ADO is the way to go. There are several good wrapper classes here on this site (look for Carlos Antollini's version it seems to be popular.) (NOTE: I use my own ADO wrapper, but his appears to be better.)
If you're adverse to that, then the MFC CDatabase and CRecordset classes can be used. They're based on ODBC.
If that's still now what you want, you can use the ODBC api.
|
|
|
|
|
i want to use RnaUi.dll on win98 and i don't found RnaDial prototype can u help
|
|
|
|
|
I want to add a logo bitmap, either tiled or centered, behind my document windows so that when they are minimized it displays the logo.
I'm not quite sure how to approach this, any ideas?
: Dean 'Karnatos' Michaud
|
|
|
|
|
This post of mine shows you how.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
What was the date it was written? For some reason the link doesn't forward me onto the post, but I am guessing it has something to do with my job-place's horrible caching server messing things up yet again.
If you could repost it, or point me to the date it was published I might be able to work around this caching server's annoyance.
Thank you for the help!
: Dean 'Karnatos' Michaud
|
|
|
|
|
I guess the problem is you're not using DHTML, and the URL changes with this optio on.
Anyway, here's the post again.
--repost
It's simple task, but many steps are required:- Create a new
CWnd -derived class, say CBackgroundWnd .
- Add these two members to
CBackgroundWnd :
CBitmap m_bitmap_background;
BITMAP m_bmInfo_background; along with this piece of code in CBackgroundWnd ctor:
m_bitmap_background.LoadBitmap(IDB_BACKGROUND);
::GetObject(m_bitmap_background,sizeof(BITMAP),&m_bmInfo_background);
- Add a handler for
WM_ERASEBKGND in CBackgroundWnd and plug this code (which draws the bitmap in tesellation mode)
BOOL CBackgroundWnd::OnEraseBkgnd(CDC* pDC)
{
CRect rect;
GetClientRect(rect);
CDC dcMem;
dcMem.CreateCompatibleDC(pDC);
HBITMAP* pBmpOld=(HBITMAP*)::SelectObject(dcMem.m_hDC,m_bitmap_background);
for(int y=rect.top;y<rect.bottom;y+=m_bmInfo_background.bmHeight){
for(int x=rect.left;x<=rect.right;x+=m_bmInfo_background.bmWidth){
pDC->BitBlt(x,y,m_bmInfo_background.bmWidth,m_bmInfo_background.bmHeight,
&dcMem,0,0,SRCCOPY);
}
}
::SelectObject(dcMem.m_hDC, pBmpOld);
return TRUE;
}
- Add a member of type
CBackgroundWnd to your CMainFrame class, say m_wndClient .
- Override
CMainFrame::OnCreateClient with this:
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
if(!CMDIFrameWnd::OnCreateClient(lpcs, pContext))return FALSE;
m_wndClient.SubclassWindow(m_hWndMDIClient);
return TRUE;
} That's it, I think. Good luck.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
--end repost
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Joaquín , what does it mean "tesellation mode" ? Could you explain ?
Cheers,
Joao Vaz
A person who is nice to you, but rude to the waiter, is not a nice person - Natalie Portman (Padme/Amidala of Star Wars)
|
|
|
|
|
Same as "mosaic mode": the bitmap is repeated horizontally and vertically to cover all the area.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Okay. Thanks
Cheers,
Joao Vaz
A person who is nice to you, but rude to the waiter, is not a nice person - Natalie Portman (Padme/Amidala of Star Wars)
|
|
|
|
|
Man, beautiful! I'm glad I asked, I was taking a different approach and it was causing undeserved headache!
Thanks again Joaquín
: Dean 'Karnatos' Michaud
|
|
|
|
|
Hello.
I want to know the exact location from where my program is launched. The thing is that argv[0] has the full path only when I execute it from the Visual Studio or Explorer. But when I'm using dos shell to execute the file from the current directory, __argv[0] contains only the name of the file
How it can be solved? Thanks for help!
Alexander.
|
|
|
|
|
The GetCurrentDirectory function retrieves the current directory for the current process.
Cheers,
Joao Vaz
A person who is nice to you, but rude to the waiter, is not a nice person - Natalie Portman (Padme/Amidala of Star Wars)
|
|
|
|