15,898,371 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Blob_Dlg (Top 6 by date)
Blob_Dlg
30-Jul-13 4:20am
View
Thanks!
That did the trick!
Blob
Blob_Dlg
19-Nov-12 7:15am
View
Still no luck in hiding main window buttons
IsWindowVisible returns 0, indicating the buttons are not visible, but still they are visible on the screen, only when I minimize the dialog and reopen, it will hide the buttons.
I found some one having the same issue:
http://www.cplusplus.com/forum/windows/64274/
I would like to try his solution, but how to change hbrbackground of an existing window?
Blob_Dlg
16-Nov-12 6:00am
View
Deleted
Here is the code that handles the tooltips
It works fine for all original buttons.
for the ones i copied from an other dialog, it does not work
it will not generate an OnTooltipNotify
<pre>BOOL CSend_DataDlg::OnToolTipNotify( UINT id,
NMHDR * pNMHDR,
LRESULT * pResult )
{
AFX_MODULE_THREAD_STATE* pModuleThreadState =AfxGetModuleThreadState();
//if(pModuleThreadState)
{
CToolTipCtrl* pToolTip = pModuleThreadState->m_pToolTip;
if(pToolTip)
pToolTip->SetMaxTipWidth(130);
}
// Get the tooltip structure.
TOOLTIPTEXT *pTTT = (TOOLTIPTEXT *)pNMHDR;
// Actually the idFrom holds Control's handle.
UINT CtrlHandle = pNMHDR->idFrom;
// Check once again that the idFrom holds handle itself.
if ((pTTT->uFlags & TTF_IDISHWND))
{
// Get the control's ID.
UINT nID = ::GetDlgCtrlID( HWND( CtrlHandle ));
// Now you have the ID. depends on control,
// set your tooltip message.
switch( nID )
{
//activate button
case IDC_MAP_1:
pTTT->lpszText = _T("Write curves of map 1");
break;
case IDC_MAP_2:
pTTT->lpszText = _T("Write curves of map 2");
break;
}
}
}
</pre>
Blob_Dlg
9-Nov-12 5:03am
View
Did that.
Not really a "user friendly" resource editor...
Blob_Dlg
7-Nov-12 9:11am
View
I see, the recourse editor is in DLUs
But still, at the position I want (147 DLU), I can not align my group box
Blob_Dlg
19-Oct-12 3:37am
View
Thank you Barakat,
But I allready tried that.
The solution as you describe works in my child dialog.
But not in the main.
I want to hide/show buttons to keep it simple for the user.
It seems easier to me if you only see 2 clickable buttons instead of 10 buttons and 8 of them are grayed...
Greetings
Show More