Hello All, I have send email from one PC in background with file attached to any mail id.. (yahoo / gmail / hotmail).... let me know any clues.. Thanks BlrBoy
BlrBoy
Posts
-
How to send email programmatically... -
How to send email programatically in back ground...Hello All, I have send email from one PC in background with file attached to any mail id.. (yahoo / gmail / hotmail).... let me know any clues.. Thanks BlrBoy
-
How to add new OS LanguageHello All, Currently I get whole mobile socrce code developeed for English. I want to make a sepeate image for a new language, apart from default supported 20 languages by Microsoft. For our applications, I can get .rc file and add string table for new language and I am able to display the applications in local language what I need. But for OS applications, menus and error messages, I am not sure how to proceed. Can any one help me to give a artcile or book reference how to localize the whole mobile and not single application. Thanks and Regards Blr Boy.
-
How to change the first boot on image in Windows Mobile 6.0 based Pocket PC Phone?Hello All, I want to change the first boot image for my Pocket PC Phone. when system boots up, initially a image is displayed followed by a power on GIF file (power_on.gif) followed by the window startup screen. I want to change the first image which is displayed on mobile. Let me know how to change it? Thanks BlrBoy
-
how to change the device context for a status barYou are right... I could achieve drawing background color, but not image. :-D Here is the code
void CMyStatusBar::DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct) { CDC dc; dc.Attach(lpDrawItemStruct->hDC); // Get the pane rectangle and calculate text coordinates CRect rect(&lpDrawItemStruct->rcItem); switch(lpDrawItemStruct->itemID) { case 0: dc.FillSolidRect (rect, RGB (255,255,0)); break;
here is the code in mainfrm.cpp in OnCreate () functionfor (int i=0; i<4; i++) { // Change Status Bar style to make it Owner-drawn m_wndStatusBar.GetStatusBarCtrl().SetText("", i, SBT_OWNERDRAW); }
Since it is owner draw.. DrawItem is called. but FillSolidRect is getting executed but no change in UI. I tried to use CDC functions like TextOut, rectangle,etc.. UI there is no change. Can you say why is this behaviour? What went wrong Thanks for your time. -
how to change the device context for a status barThanks... Here is an easy solution for that, you can call SetBkColor () directly. it will change the back ground color.
m_wndStatusBar.GetStatusBarCtrl ().SetBkColor (RGB ( 255, 255, 22));
Thanks for your time -
how to change the device context for a status barI tried to override OnDraw () but all panes are not getting painted I am getting solid rectangle image on full status bar. here is the code
void CMyStatusBar::OnPaint() { CPaintDC dc(this); // device context for painting RECT rect; GetClientRect (&rect); dc.FillSolidRect (&rect, RGB(255, 124, 20)); }
If I remove FillSolidRect function the status message, panes are not visible. Please help me out. Thanks for your time. -
how to change the device context for a status barThanks for quick response. I am looking for chaging the background with an image. The function fillsolidrect changes the full color of the status bar.
-
how to change the device context for a status barHello All.. I am trying to draw a bitmap as background for the status bar. I have derived my own status bar from CStatusBar. When I try to override OnPaint ().. it erases the default status bar messages and panes.. I tried to change the Device Context on OnCreate () and OnNCPaint () both are not working here is the code.
void CMyStatusBar::OnNcPaint() { CDC* pdc= GetWindowDC(); CDC memdc; memdc.CreateCompatibleDC(pdc); memdc.SelectObject(m_hBmp); pdc->BitBlt(0, 0, m_rectLogo.Width(), m_rectLogo.Height(), &memdc, 0, 0, SRCCOPY); ReleaseDC(pdc); } int CMyStatusBar::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CStatusBar::OnCreate(lpCreateStruct) == -1) return -1; m_hBmp = (HBITMAP)LoadImage(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDB_BKCOLOR_BMP), IMAGE_BITMAP, 0, 0, LR_CREATEDIBSECTION); BITMAP bm; GetObject(m_hBmp, sizeof(bm), &bm); m_rectLogo.left = 15; m_rectLogo.right = 15 + bm.bmWidth; m_rectLogo.top = 2 ; return 0; }
Next I tried to create a solid brush (for testing) in OnCreate and tried to select that object but that is also not workingint CMyStatusBar::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CStatusBar::OnCreate(lpCreateStruct) == -1) return -1; if (!m_oBrush.CreateSolidBrush (RGB(255, 0, 0))) AfxMessageBox ("Error in creating brush"); GetStatusBarCtrl().GetDC ()->SelectObject (&m_oBrush); return 0; }
I am unable to change the DC of the status bar. Let me know how to draw a bitmap as back ground for a status bar? Thanks for your time -
How to send email programatically with attachmentHello All I want to programatically send email to my ID (Yahoo or gmail) with an attachment. I am very new to email programming. Can any one suggest where to start with? Thanks for your time BlrBoy
-
How to change the background of mainframe and status bar - UrgentI tried with some skins.. look and feel is good. but the placement of controls differ for different OS. So i changed my mind to program the same. If there is any free skin development tools let me know. I can try one more time...
-
How to change the background of mainframe and status bar - UrgentHello I want to change the background of mainframe window, status bar and menu bar.. without using skins any help... Blr Boy
-
How to change the background color of menu bar...Thanks it is fine for menu item. I am looking for menu bar, status bar and mainframe window (mostly with out using skins)
-
How to change the background color of menu bar...Hello, I want to change the background color of menu bar, tool bar and status bar as it is shown in Office any ideas? Thanks for your time Blr Boy
-
Owner Draw button changes the tab orderHello All, In my dialog box, I want to use an image on a button, so I made it as Owner Draw, I use CBitmapButton class and it is working fine. But when ever the dialog comes up, the initial focus is on the user defined button only. Here is the code for bitmap button
CBitmap bmp; BITMAP bm; bmp.LoadBitmap (IDB_ENABLE_BMP); bmp.GetBitmap (&bm); m_oMyBtn.SetWindowPos (NULL, 0, 0, bm.bmWidth, bm.bmHeight, SWP_NOMOVE | SWP_NOOWNERZORDER); m_oMyBtn.LoadBitmaps (IDB_ENABLE_BMP, IDB_SEL_BMP, IDB_FOCUS_BMP, IDB_DISABLE_BMP);
I found when ever I use "SetWindowPos" the initial focus is always on the owner draw button. If I remove "SetWindowPos" function then the focus is as per my tab order settings. My idea is to resize the button as per the image size. If any other way to do that let me know. Thanks for your time BlrBoy -
Using PNG / TIF format images in Button control and backgroundHello All, I have images in .PNG format to be used in my Buttons in my dialogs and forms. When I tried to use the CBitmapButton it is expecting the images in .BMP format. When I tried to convert the image the color of image changes :doh:. TIF format gives almost similar look and feel when converted from PNG format.:rolleyes: Let me know how to use PNG / TIF images for my button. I have few images in PNG format to be used as background of my dialogs also. Let me know how to use PNG files as back ground of the dialog box. Thanks in Advance Blr Boy
-
Can I start a timer inside a thread [modified]I want to do a periodic checking of data inside a thread. Can i start Timer in a UI thread derived from CWinThread? -- modified at 1:50 Friday 27th April, 2007
-
Which is better C# or VC++.NETHello All, Currently I have developed an application using VC++ 6.0. Latter when "Developer Environment 2003" came I migrated to VC++.NET. But my code is fully like VC++ 6.0 code (I have not used .NET fully in my project) I am planning to move this project to either C# or VC++. NET fully. I want your suggetion which will be better. Application uses MFC for GUI, Database, File operations, COM for communication between different modules and multithreading extensively. Suggest me which is better for such type of project C# or VC++.NET!!! I want to have better GUI, easy DB Support, File oprations, easier COM communication and mainly Mulithreading and IPC should be easy. Memory leaks it is automatically taken care I can be more lazy. :rolleyes: Suggest me better option between 2. Thanks Ravi
-
Which is better C# or VC++.NETHello All, Currently I have developed an application using VC++ 6.0. Latter when "Developer Environment 2003" came I migrated to VC++.NET. But my code is fully like VC++ 6.0 code (I have not used .NET fully in my project) I am planning to move this project to either C# or VC++. NET fully. I want your suggetion which will be better. Application uses MFC for GUI, Database, File operations, COM for communication between different modules and multithreading extensively. Suggest me which is better for such type of project C# or VC++.NET!!! I want to have better GUI, easy DB Support, File oprations, easier COM communication and mainly Mulithreading and IPC should be easy. Memory leaks it is automatically taken care I can be more lazy :rolleyes:. Suggest me better option between 2. Thanks Ravi
-
How to restrict user to reduce size of dialog boxHello all, I want to restrict user not to reduce the size of dialog within limits. My dialog box is created in resource editor and class is derived from CDialog. I made the Border property "resizable" and it allows the user to resize the dialog. I want to restrict the user not to reduce the size than certain limit. I write the code in OnSize handler as below
void CMyDlg::OnSize(UINT nType, int cx, int cy) { if (cx < 650) cx = 650; if (cy < 270) cy = 270; CDialog::OnSize(nType, cx, cy); // resize all controls present in the dialog box }
But the dialog still can be reduced less than width 650 and height 270. I tried to put "return" if the cx is < 650 and cy < 270. but user can still reduce the size. Can any one suggest how to restict the user? Thanks for your time Ravi