Hi, I like to learn windows socket programming concept with hands on. Can any one suggest where i can get help? Regards, Rameshkanth
ksrameshkanth
Posts
-
Learning Socket Programming -
CListCtrl is not display the information in 64-bit windows OSHi, I am customizing list control and building with x64 configuration, then testing on 64 bit windows xp professional edition listing of item is missing( Just blank). If any one come across this problem, can help me?
-
Icon background is black in 16bit color quality - vc++(vs2005)Hi, I am working on propertysheet application wizard, to change my application icon i have change 16x16, 32x32, 48x48 of 256 colors, this is working fine. when I change my settings(Right Clik on Desktop->properties->settings->color quality) to "Medium(16bit)background becomes block.Can anyone help me for this?
-
Detect FIREWIRE DeviceHi, I am not sure about FIREWIRE, But generally device detect can be found by using the message ON_WM_DEVICECHANGE(). Also refer the following link http://www.codeproject.com/system/HwDetect.asp Regards, Rameshkanth BORN TO WIN
-
why have line?Hi Alan, The code is working fine for me, I am using VS2005. Regards, Rameshkanth
-
USB device message detectorHi, I think you can handle ON_WM_DEVICECHANGE(). Also refer the following link http://www.codeproject.com/system/HwDetect.asp Regards, Rameshkanth
-
Repainting problem On Minimize and Close buttonHi, I have property sheet wizard application and I am repaining its title bar and creating new minimize and close button on title bar. The following codes are doing things ok. but when i try to right click on task bar button( applications task bar button - close/minimize application from system menu) minimize and close button is not repinted as expected. The codes are void CSamplePaintSheet::OnNcPaint() { CWindowDC dc( this ); ModifyStyle(NULL,WS_SYSMENU|WS_MINIMIZEBOX); Default(); ReDrawCaptionBar( &dc ); ReleaseDC( &dc ); } BOOL CSamplePaintSheet::OnNcActivate( BOOL bActivate ) { OnNcPaint(); return TRUE; } void CSamplePaintSheet::ReDrawCaptionBar(CDC *pDC ) { CRect rc; this->GetWindowRect( rc ); ScreenToClient( rc ); rcCap = rc; rcCap.bottom = ::GetSystemMetrics( SM_CYCAPTION ) + ::GetSystemMetrics( SM_CYFIXEDFRAME ); rcCap.right += ::GetSystemMetrics( SM_CXFIXEDFRAME ); CString szTitle(_T("Sample Paint Application")); SetWindowTextW( szTitle ); CBrush brSolid( CLR_GRAY ); pDC->FillRect( &rcCap, &brSolid ); CRect rcLeft( rc ); rcLeft.top = rcCap.bottom; rcLeft.right = ::GetSystemMetrics( SM_CXFIXEDFRAME ); rcLeft.bottom = rc.Height(); pDC->FillRect( &rcLeft, &brSolid ); CRect rcRight( rc ); rcRight.left = rcCap.right - ::GetSystemMetrics( SM_CXFIXEDFRAME ); rcRight.top = rcLeft.top; rcRight.right = rcCap.right; rcRight.bottom = rcLeft.bottom; pDC->FillRect( &rcRight, &brSolid ); CRect rcBottom( rc ); rcBottom.left = rcLeft.left; rcBottom.top = rcRight.bottom - ::GetSystemMetrics(SM_CYFIXEDFRAME) - nBottomBorderHeight; rcBottom.right = rc.Width(); rcBottom.bottom = rcRight.bottom; pDC->FillRect( &rcBottom, &brSolid ); CSize sizeText = pDC->GetTextExtent( szTitle ); int nCy = HIWORD( ::GetDialogBaseUnits() ); rcText = rcCap; rcText.left = ::GetSystemMetrics( SM_CYFIXEDFRAME ); rcText.right = rcText.left + ( sizeText.cx ); rcText.top = (rcCap.bottom - (nCy + 1))/2; rcText.bottom = rcText.top + nCy + 1; pDC->SetBkMode( TRANSPARENT ); pDC->DrawText( szTitle, rcText, DT_LEFT | DT_SINGLELINE ); rcBtClose = rc; rcBtClose.top = ::GetSystemMetrics( SM_CYFIXEDFRAME )+ 3; rcBtClose.right = rcBottom.right - ::GetSystemMetrics( SM_CXFIXEDFRAME ); rcBtClose.left = rcBtClose.right - ::GetSystemMetrics( SM
-
Accessing CView from CDialog MFC???bob16972's idea is good, at the same time u can have "CSliderDialog dlg;" is the member of CTestsliderView class.so that across the view u can access ur dialog very easily.
-
[Urgent] How to create WS_SYSMENUI am creating propertysheet wizard application with customized title bar color. To customize i have removed system menu by using ModifyStyle( WS_SYSMENU, 0). Now again i want to have WS_SYSMenu. Can any one help me? Thanks, Rameshkanth
-
[Urgent]Minimize window clicking task bar button [modified]I have minimize(-) button and close(x) button in caption bar. Here i have overidden those default button and created new one. Clicking on minimize,close button my application working fine. Even doing well on system menu also. when i click on task bar button it is not minimizing.
-
[Urgent]Minimize window clicking task bar button [modified]Hi, I am working on property sheet wizard application, I have over ridden all non client area messages to customize title bar color. Now my problem once execute exe i am not able to minimize application by clicking its task bar button. Can anyone help me come out from this problem? Thanks, Rameshkanth -- modified at 10:10 Wednesday 4th April, 2007
-
[urgent]How do i create Lib from Regular DLLHi, my exe is single when i distribute to customer, So i don't want to use dll. How do i convert my dll into lib. Regards, Rameshkanth
-
Localisation/Internationalization from Header fileHi, Actually i have dialog based application that need to support more than one language.All the language text available in header file based on the language selection text can be loaded into dialogs and its controls(working fine for French). when i do the same with Japanese only i could see only consecutive squares. Any one suggest how do i over come this problem? Thanks, Rameshkanth
-
Basic QuestionOther way is.... CWnd *pWnd = GetDlgItem( IDC_BUTTON/* Ur Button ID */); pWnd->EnableWindow( FALSE );//Disable the button pWnd->EnableWindow( TRUE );//Enable the button
-
buttoncontrols-- help me its urgentI think it may be done by overriding CButton class then need to draw button yourself overriding DrawItem().
-
PropertySheet - ON_NOTIFY is not workingYah you are right. But how do i assure that message comes from so and so control( like ON_NOTIFY)
-
PropertySheet - ON_NOTIFY is not workingHi, I have property wizrad application which has customized button(Owner Draw). I am trying to get control notification from those buttons which has focus and hitting enter key. I am handling ON_NOTIFY message on Propertysheet which is parent for those buttons. Even I tried with over writing PreTranslatedMessage(), but it is not working. Can anyone give me a suggestion? Thanks, Rameshkanth
-
Disable/Enable newly created caption buttonHi, I am working in property Sheet wizard application. Here I am painting caption bar by own on OnNcPaint() and creating new minimize and close button. At some stage i want to disable/enable minimize and close button in caption bar. Can any one suggest? Regards, Rameshkanth