You can always subclass the existing controls and create your own using bitmaps..there are lots of links on CodeProject itself.
Taran9
Posts
-
how to do user interface(UI) design? -
How to Get desktop coordinates.For determining the resolution(xMax X yMax), you can use
xMax = GetSystemMetrics(SM_CXSCREEN)
yMax = GetSystemMetrics(SM_CYSCREEN)and for knowing the coordinates, use GetClientRect and change it to screen coordinates, if required, by using
ClientToScreen
API. -
equivalent of c# @"" string literal?use double backslash like
"C:\\test.jpg"
-
[RESOLVED]using enum in #if preprocessor directive [modified]ok.. got it. Thanks!
-
[RESOLVED]using enum in #if preprocessor directive [modified]Yeah! u r correct! But why so? I mean why is it ok if I assign it to an int and not otherwise?
-
[RESOLVED]using enum in #if preprocessor directive [modified]«_Superman_» wrote:
You cannot mix them this way.
Tell me one thing if I replace enum with #define and instead of AfxMessageBox, I define varA, then it compiles.
#define APPLE 0
#define ORANGE 1
#define SELECTED APPLE#if SELECTED == 1
int varA = 100;
#else
int varA = 101;
#endifReplacing enum with #define is fine but isn't the definition of varA also handled by compiler only? I mean why
int varA = 101;
is ok andAfxMessageBox
not? -
segmentation fault issue in derived class assigment [modified]First of all, you have forgotten to derive bc from ab here.
hawk23reddy wrote:
class bc
Secondly, change the signature of get from
hawk23reddy wrote:
void get(ab* c)
to
hawk23reddy wrote:
void get(ab** c)
and while calling get, pass address of b as argument.
-
wndTopMost - getting C2065 errorDougButtimer wrote:
dlgEnd.SetWindowPos(&wndTopMost,60,80,0,0,SWP_NOSIZE);
Use dlgEnd.SetWindowPos(&CWnd::wndTopMost,60,80,0,0,SWP_NOSIZE); instead.
-
Win32: Get message notification of other application's close/exit.WindowsPistha wrote:
Not all the applications are generating a WM_CLOSE message (Ex: Total Video Player Exe) (-) If the application was closed through the "Exit" menu or button (e.g. File->Exit) , I can't trap that message
Why don't you capture WM_QUIT instead? This is the only message that finally halts the Message Loop. But, you won't be able to track abnormal termination of an application with this.
-
Create file with full permission control to user.- You can try exploring the flags of CFile ctor. 2) And if not satiated with what you are trying to achieve, then try using CreateFile, modify its security attributes and pass its handle to CFile ctor.
-
Handling Shift + Tab key combinationFollow the second question in this article. http://msdn.microsoft.com/en-us/magazine/cc301431.aspx[^] and for exact code, click on figure 4 http://msdn.microsoft.com/en-us/magazine/bb984939.aspx[^]
-
Windows and ThreadsThanks for correcting me!
-
Windows and ThreadsStuart, Isn't message queue an application level data structure that's common to all its threads?
-
How to calculate the time between LBUTTONDOWN and LBUTTONUP?You can use 'GetDoubleClickTime' to retreive double click time for your mouse.
-
Erase text in transparent window:D
-
How To Beautify the Software Interface In MFC?Use Adobe Photoshop to make custom defined bitmaps of whatever design you want and paste it onto the dialogs during initialization + OnPaint handlers. Simple! There are numerous code samples available on this site.
-
AfxRegisterWndClassU can do the registration in 'InitInstance' method of Application derived class(before 'DoModal' of the main dialog)
WNDCLASS wc = {0};
wc.style = CS_BYTEALIGNWINDOW|CS_SAVEBITS|CS_DBLCLKS;
wc.lpfnWndProc = DefDlgProc;
wc.cbWndExtra = DLGWINDOWEXTRA;
wc.hInstance = m_hInstance;
wc.hIcon = LoadIcon(IDR_MAINFRAME);
wc.hCursor = ::LoadCursor(NULL, IDC_ARROW);
wc.hbrBackground = CreateSolidBrush(GetSysColor(COLOR_BTNFACE));
wc.lpszClassName = ATOM cls = RegisterClass(&wc); -
Problem in Image Displaying in a VC++ ApplicationRefer [^]
-
One doubtWhy don't you register a callback in the module where data is rcvd. and call that callback as soon as (dataHasCome)
-
typecasting WCHAR to charUse WideCharToMultiByte API.