Forum: C++ Jul 23rd, 2009 |
| Replies: 7 Views: 724 Yes i tried this too,but in vain
BOOL CMyTabCtrl::OnEraseBkgnd(CDC* cdc)
{
CTabCtrl::OnEraseBkgnd(cdc);
CRect Rect;
COLORREF color = RGB(0,108,175);
GetClientRect(&Rect);... |
Forum: C++ Jul 23rd, 2009 |
| Replies: 7 Views: 724 The link:
http://support.microsoft.com/support/kb/articles/Q179/9/09.ASP
only shows the "coloring" of individual tabs on the control and not the BG color of the tab control.Do you have some another... |
Forum: C++ Jul 23rd, 2009 |
| Replies: 7 Views: 724 The above code only changed the tab colour and i donot want that.I want to colour the whole of the tab background to black.I derived a class from CTabCtrl and implemented ON_WM_ERASEBKGND but it did... |
Forum: C++ Jul 22nd, 2009 |
| Replies: 7 Views: 724 I have Tabctrl in a dialog.I want to set its background colour for each tab .I tried ON_WM_DRAWITEM but the control never comes in OnDrawItem().Can you help?
#define RED RGB(255,0,0)
#define... |
Forum: C++ Jul 21st, 2009 |
| Replies: 4 Views: 379 Hi,
How to set background image of CTreeCtrl? And also how can i set different colours to different items of CtreeCtrl? |
Forum: C++ Jul 18th, 2009 |
| Replies: 1 Views: 362 Hi,
How to remove OK and Cancel button of propertysheet?
And also how to remove tiltle bar of propertysheet just showing the tabs of property pages? |
Forum: C++ Jul 18th, 2009 |
| Replies: 6 Views: 262 The caller must free the lpszProxy, lpszProxyBypass and lpszAutoConfigUrl strings in the WINHTTP_CURRENT_USER_IE_PROXY_CONFIG structure if they are non-NULL. Use GlobalFree to free the strings.
... |
Forum: C++ Jul 17th, 2009 |
| Replies: 6 Views: 262 well thanks for your reply,,,i already searched on google but couldnt find any solution and i guess its better to search there more instead wasting time in reading that stupid doc |
Forum: C++ Jul 17th, 2009 |
| Replies: 6 Views: 262 hi,,,
i am getting memory leaks in my application when i use winhttp functions like WinHttpGetIEProxyConfigForCurrentUser(),WinHttpOpen(),,,,and many others,,,,,how to deal with it??? |
Forum: C++ Mar 6th, 2009 |
| Replies: 8 Views: 680 How can i prevent a dialog closing by Alt+F4 ?
I am using PreTranslateMessage(),,,,what is the Virtual key #define for Alt+F4 or is there any other way?,,,,thank you |
Forum: C++ Nov 20th, 2008 |
| Replies: 1 Views: 255 Hi,
How to insert a combox to a column of list ctrl in MFC?....such tht i can select a particular item from a list of items in the combo box of list ctrl column....plz help |
Forum: C++ Nov 17th, 2008 |
| Replies: 2 Views: 915 well i get this crash before start of my application i.e before entering InitInstance(),,,,so i guess its not a problem of buffer over run or un-initialized variables or pointers,,, |
Forum: C++ Nov 17th, 2008 |
| Replies: 2 Views: 915 hi,
I get a crash as
"Unhandled exception at 0x5f4335bb (MFC42D.DLL) in VMFirewall.exe: 0xC0000005: Access violation reading location 0x00000000."
in D:\Program Files\Microsoft... |
Forum: C++ Jul 8th, 2008 |
| Replies: 5 Views: 2,564 Thanks a lot ....#pragma warning(disable:4996) has solved my problem temporarily.....but later it may give problem as suppressing warning will give compile time errors for these functions as the... |
Forum: C++ Jul 8th, 2008 |
| Replies: 5 Views: 2,564 .....thanks for this quick help..,,,, but both of these funtions have different parameters,,,strcpy_s has a additional parameter to strcpy which is the size of buffer,,,..hence #define strcpy_s... |
Forum: C++ Jul 8th, 2008 |
| Replies: 5 Views: 2,564 String functions like strcpy,strcat,itoa...shows warning as "declared deprecated" in Visual Studio 8.0 instead it suggests to use functions which are enhanced secure versions of the same such as... |
Forum: C++ May 5th, 2008 |
| Replies: 0 Views: 451 MapFileAndCheckSum returns CHECKSUM_MAPVIEW_FAILURE(Could not map a view of the file) for file of size 758MB and above.For size upto 757MB it returns CHECKSUM_SUCCESS(normal behaviour).What is the... |
Forum: C++ Apr 24th, 2008 |
| Replies: 3 Views: 1,048 1)#define KP_PRODUCTTYPE _T("KeyPoint")
string ProductType = KP_PRODUCTTYPE;
Memory leak report:
---------- Block 3169 at 0x01DC4460: 16 bytes ----------
Call Stack:
... |
Forum: C++ Apr 24th, 2008 |
| Replies: 3 Views: 1,048 hi,
whenever std::string is assigned to another std::string its giving me a memory leak,why is it so....generally std::string's destructor takes care of freeing it.......can anybody help me wht... |
Forum: C++ Mar 7th, 2008 |
| Replies: 6 Views: 3,546 yes.............virtualalloc() is returning NULL hence when used in pBuffer it crashes...........i want to allocate more than 400MB upto say 1GB. |
Forum: C++ Mar 4th, 2008 |
| Replies: 6 Views: 3,546 DWORD dsize = 468178553;
PBYTE pBuffer=(PBYTE)::VirtualAlloc(NULL,dsize ,MEM_COMMIT,PAGE_READWRITE);
but still its crashing.......i hav 1GB of RAM and my virtual memory settings are:
initial... |
Forum: C++ Mar 3rd, 2008 |
| Replies: 6 Views: 3,546 Thank you..... i will try out ........... |
Forum: C++ Feb 29th, 2008 |
| Replies: 6 Views: 3,546 I did HANDLE hHeap = GetProcessHeap(); which gives me the handle to the heap of the process then i did
DWORD dsize = 468178553;
(near pointer)PBYTE pBuffer = (LPBYTE)HeapAlloc(hHeap, 0, size); ... |
Forum: C++ Feb 13th, 2008 |
| Replies: 3 Views: 1,550 Thanks for the solution but the SetTimer() will again start the timer from 0 and not from the time where it was stopped. |
Forum: C++ Feb 12th, 2008 |
| Replies: 3 Views: 1,550 Scenario:
I hav set a timer using SetTimer(),after timeout my application gets a WM_TIMER and it exits.
I Want: to pause this timer before a particular process and again restart it when the process... |
Forum: C++ Jul 10th, 2007 |
| Replies: 9 Views: 3,285 [no there is only one thread (sorry if my statement indicated so)
i hav called thread by using AfxBeginthread in onInitdialog of Dialog box and wants to close this dialog Box only after the thread... |
Forum: C++ Jul 10th, 2007 |
| Replies: 9 Views: 3,285 ur solution is not helping me frnd......i hav called a thread in onInitDialog of a dialog box(onInitDialog is called from DoModal()) .in the tread i hav done some processing and after it gets... |
Forum: C++ Jul 9th, 2007 |
| Replies: 9 Views: 3,285 There is no X button and i want to close this dialog box after a particular thread ends |
Forum: C++ Jul 9th, 2007 |
| Replies: 9 Views: 3,285 How to close dialog box if it doesnt hav OK and CANCEL Button in windows programming.the dialog box is shown with DoModal which inturn calls onInitDialog().But how to close it ?does EndDialog hepls... |
Forum: Windows NT / 2000 / XP Jul 6th, 2007 |
| Replies: 3 Views: 6,043 How to close dialog box if it does not has OK and CANCEL |
Forum: C++ Jul 2nd, 2007 |
| Replies: 10 Views: 4,520 |