Click here to Skip to main content
15,898,371 members

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