Click here to Skip to main content

Articles by Mukit, Ataul (Articles: 14, Technical Blogs: 6, Tip/Tricks: 42)

Articles: 14, Technical Blogs: 6, Tip/Tricks: 42

RSS Feed

Average article rating: 4.80

Document / View

Tabbed View Interface in an MFC Doc View Application
Posted: 22 Jul 2010   Updated: 22 Jul 2010   Views: 21,253   Rating: 4.93/5    Votes: 13   Popularity: 5.50
Licence: The Code Project Open License (CPOL)      Bookmarked: 29   Downloaded: 1,891
Create a tabbed view interface in an MFC based Doc View application.

Grid & Data Controls

Grid Control Re-dux with Smooth Scroll and Composite Cell
Posted: 18 Aug 2010   Updated: 27 Aug 2010   Views: 37,667   Rating: 4.96/5    Votes: 26   Popularity: 7.02
Licence: The Code Project Open License (CPOL)      Bookmarked: 49   Downloaded: 2,677
Chris Maunder's CGridCtrl had been modified to accomodate merged cells and freezed panes, now it has the cool feature of Horizontal Smooth Scrolling and Composite Cell (to show a minigrid inside a single cell)
CGridCtrl with Merge Cell and Freeze Row/Col Capability
Posted: 5 Jul 2010   Updated: 18 Aug 2010   Views: 28,227   Rating: 4.83/5    Votes: 21   Popularity: 6.44
Licence: The Code Project Open License (CPOL)      Bookmarked: 48   Downloaded: 2,714
Add XL style merge cell as well as Freeze Pane (freeze row/col) functionality to Chris Maunder's CGridCtrl.
CTreeGridCtrl - A Grid Control with Tree Like Functionalities
Posted: 9 Nov 2010   Updated: 10 Nov 2010   Views: 29,028   Rating: 4.80/5    Votes: 12   Popularity: 5.16
Licence: The Code Project Open License (CPOL)      Bookmarked: 48   Downloaded: 2,664
Chris Maunder's grid control enhanced to have tree like features

Miscellaneous

An Adobe style slider control
Posted: 3 Jan 2012   Updated: 3 Jan 2012   Views: 6,916   Rating: 4.73/5    Votes: 5   Popularity: 3.30
Licence: The Code Project Open License (CPOL)      Bookmarked: 9   Downloaded: 487
Customize the standard slider control to appear like an Adobe style slider control

Toolbars & Docking windows

Microsoft WORD 2007 Style Semi-transparent Minibar
Posted: 29 Jun 2010   Updated: 29 Jun 2010   Views: 13,792   Rating: 4.93/5    Votes: 11   Popularity: 5.13
Licence: The Code Project Open License (CPOL)      Bookmarked: 16   Downloaded: 527
Create a very basic Microsoft WORD 2007 style semi-transparent Minibar with tooltip like behaviour

General Graphics

Easily load JPEG, GIF, BMP, and PNGs and distinguish between text and regular images
Posted: 5 Aug 2010   Updated: 5 Aug 2010   Views: 19,390   Rating: 4.68/5    Votes: 19   Popularity: 5.97
Licence: The Code Project Open License (CPOL)      Bookmarked: 42   Downloaded: 3,015
See how easy it is to load JPEG, GIF, BMP, and PNG images with MFC and process bitmap data to determine if the image is a text image/scanned document or a regular picture.
Draw custom caption with bitmap in Windows 7/Vista Aero theme
Posted: 9 Aug 2010   Updated: 9 Aug 2010   Views: 28,575   Rating: 4.92/5    Votes: 42   Popularity: 7.98
Licence: The Code Project Open License (CPOL)      Bookmarked: 48   Downloaded: 1,018
Display a bitmap and control its transparency in the caption of a window, as well as custom draw the caption in the Aero theme of Windows 7/Vista.
Detect image skew angle and deskew image
Posted: 24 Aug 2010   Updated: 13 Feb 2013   Views: 55,606   Rating: 4.98/5    Votes: 35   Popularity: 7.68
Licence: The Code Project Open License (CPOL)      Bookmarked: 106   Downloaded: 5,602
Deskew an image by converting it to grayscale + edges and rotating by the detected skew angle.

C / C++ Language

Interfacing without Inheritence in C++
Posted: 4 Oct 2010   Updated: 11 Oct 2010   Views: 28,121   Rating: 4.69/5    Votes: 32   Popularity: 7.04
Licence: The Code Project Open License (CPOL)      Bookmarked: 25   Downloaded: 137
An alternate way to implement interface through aggregation rather than the usual way we know as inheritence

XML

An XML parser and editor with shades of a Design Pattern
Posted: 16 Aug 2010   Updated: 16 Aug 2010   Views: 18,378   Rating: 4.80/5    Votes: 12   Popularity: 5.18
Licence: The Code Project Open License (CPOL)      Bookmarked: 26   Downloaded: 1,259
A very generic XML parser whose internal implementation can be changed without affecting the rest of the source code.

COM / COM+

PreTranslateMessage (and TAB + ARROW key) Support in Modeless Dialogs inside COM/ActiveX
Posted: 16 Jun 2011   Updated: 21 Jun 2011   Views: 14,113   Rating: 4.62/5    Votes: 21   Popularity: 6.12
Licence: The Code Project Open License (CPOL)      Bookmarked: 17   Downloaded: 575
A solution to the problem of PreTranslateMessage not being called for modeless dialogs inside COM/Active-X. It also addresses the problem of Arrow and Tab keys not working inside COM/ActiveX

Algorithms & Recipes

iberg's muParser modified to support pointer data types
Posted: 19 Aug 2010   Updated: 22 Aug 2010   Views: 7,263   Rating: 4.71/5    Votes: 8   Popularity: 4.24
Licence: The MIT License      Bookmarked: 11   Downloaded: 69
iberg's muParser supports mainly value_type (double); now it's been modified to support arg_type (longest possible data structure).

Design and Architecture

Command Pattern at Work in a Database Application
Posted: 8 Feb 2011   Updated: 8 Feb 2011   Views: 10,174   Rating: 4.68/5    Votes: 16   Popularity: 5.62
Licence: The Code Project Open License (CPOL)      Bookmarked: 28   Downloaded: 211
A practical example of command pattern applied in a database application

Average blogs rating: 4.38

HTML / CSS

My Own HTML [Technical Blog]
Posted: 21 Feb 2013   Updated: 22 Feb 2013   Views: 3,521   Rating: 4.00/5    Votes: 4   Popularity: 2.21
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Initially, I set off to write quite a big post about how I want my version of HTML to be, offering more simplicity and capability by having a few tags included in the already existing version.Then I realized, there is no need to write an elongated post, it is possible

Internet / Network

Designing a Peer to Peer Voice Communication Software [Technical Blog]
Posted: 27 Mar 2013   Updated: 27 Mar 2013   Views: 4,196   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
Why let Skype go unchallenged for years and years? Maybe some of you can come up with better algorithms to top Skype and provide better alternatives to the user.

Design and Architecture

A perspective on Programming Problems and Challenges [Technical Blog]
Posted: 11 Feb 2013   Updated: 11 Feb 2013   Views: 1,398   Rating: 4.50/5    Votes: 2   Popularity: 1.40
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
This blog is actually a reply to a tweet which asked "What's an example of a programming problem, in your perspective".
Eccentricity in programming languages [Technical Blog]
Posted: 16 Feb 2013   Updated: 21 Feb 2013   Views: 5,091   Rating: 3.25/5    Votes: 4   Popularity: 1.69
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
Over the years, now almost a decade with bits and bytes (at an abstract level), I have had to come to terms with some (not many) strange programming language constructs in a variety of programming languages. On second thought, not so much the constructs, rather some of

Work Issues

How to do your project estimations! [Technical Blog]
Posted: 25 Apr 2013   Updated: 2 May 2013   Views: 2,805   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 6   Downloaded: 0
How to do your project estimations!
The developer - the Yogi [Technical Blog]
Posted: 11 Mar 2013   Updated: 11 Mar 2013   Views: 1,717   Rating: 4.50/5    Votes: 5   Popularity: 3.36
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
My thougths are devoted to those problems which require considerable amount of mental effort to be solved where the developer, for a few hours or so, is not in the realm of normal day to day mental activities.

Average tips rating: 4.47

Dialogs and Windows

How to prevent OnEraseBkgnd effect in C# applications [Tip/Trick]
Posted: 13 May 2012   Updated: 13 May 2012   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
how to make sure background is not painted in C#

Document / View

Implement Doc-View with Windows Forms [Tip/Trick]
Posted: 6 May 2012   Updated: 6 May 2012   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Implement document view architecture in C#

Grid & Data Controls

Fast Ensure Visible for CGridCtrl [Tip/Trick]
Posted: 5 Mar 2012   Updated: 5 Mar 2012   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
This tip shows a very fast algorithm (with some constraints enforced for it to work) to EnsureVisible a row in CGridCtrl by Chris Maunder

Caching

Get latest link preview in facebook if it is showing cached info [Tip/Trick]
Posted: 2 May 2013   Updated: 2 May 2013   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0

User Controls

Using wxWidgets in FireBreath [Tip/Trick]
Posted: 18 Apr 2012   Updated: 18 Apr 2012   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
How to use wxWidgets in FireBreath

Audio and Video

Adjust Audio/Video Synchronization [Tip/Trick]
Posted: 20 May 2011   Updated: 22 May 2011   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Adjust Audio/Video Synchronization of an AVI file
Solve Corrupt AVI due to sudden interruption or halt in recording [Tip/Trick]
Posted: 31 Jan 2011   Updated: 22 May 2011   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Why sometimes AVI files captured through video camera recording cannot be opened when the camera loses power (similar case for downloaded AVI when internet goes off) and how to solve it

General Graphics

Save a 24 bit bitmap's pixel data to File in BMP format [Tip/Trick]
Posted: 15 Mar 2012   Updated: 24 Mar 2012   Rating: 3.59/5    Votes: 3   Popularity: 1.71
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
This tip shows how to save a 24 bitmap to a file given filename, pixel data, bitmap width and bitmap height

C / C++ Language

Invalid Address specified to RtlFreeHeap - How to Solve [Tip/Trick]
Posted: 19 Mar 2012   Updated: 19 Mar 2012   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
This tip tells you how to solve the Invalid Address specified to RtlFreeHeap issue
static variables causing problem in console applications [Tip/Trick]
Posted: 19 Mar 2012   Updated: 19 Mar 2012   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
sometimes console applications give runtime error when you declare static varialbes, so here is a solution how to deal with it
Invoke method pointers elegantly in C++ [Tip/Trick]
Posted: 15 Jul 2012   Updated: 15 Jul 2012   Rating: 1.00/5    Votes: 2   Popularity: 0.30
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
invoke method pointer elegantly
Minimize the Possibility of Data Corruption when Exporting a Class [Tip/Trick]
Posted: 10 Mar 2012   Updated: 10 Mar 2012   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
How to minimize the possibility of data corruption when exporting a class

C#

Pass C# Delegate as Callback to C++ [Tip/Trick]
Posted: 29 May 2012   Updated: 29 May 2012   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 7   Downloaded: 0
This tip shows how to pass a delegate to a C++ exported DLL function from C#

MFC

Solve Error RC2135: File Not Found: xxxxx.tlb [Tip/Trick]
Posted: 22 May 2012   Updated: 25 Apr 2013   Rating: 4.89/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
This tip tells you what to do when you are faced with the RC2135 problem in the resource file.
Solve error LNK2005: _DllMain@12 already defined in msvcrtd.lib(dllmain.obj) in MFC Projects [Tip/Trick]
Posted: 5 Mar 2012   Updated: 5 Mar 2012   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0

Bugs & Workarounds

Solve CVT1100: duplicate resource. type:MANIFEST issue in Visual Studio for MFC/C++ [Tip/Trick]
Posted: 2 Sep 2011   Updated: 2 Sep 2011   Rating: 4.50/5    Votes: 3   Popularity: 2.07
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Solve the CVT1100 error.

Internet / Network

What Microsoft says about cloud computing [Tip/Trick]
Posted: 21 Dec 2011   Updated: 21 Dec 2011   Rating: 1.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
An MSDN article about cloud computing in MSDN

Programming Tips

Write a bitmap to File [Tip/Trick]
Posted: 4 Jan 2011   Updated: 5 Jan 2011   Rating: 4.71/5    Votes: 6   Popularity: 3.63
Licence: The Code Project Open License (CPOL)      Bookmarked: 5   Downloaded: 0
Nice source found in the internet to copy a bitmap (DIB) to file
Create a cursor from an ICON [Tip/Trick]
Posted: 4 Jan 2011   Updated: 5 Jan 2011   Rating: 3.67/5    Votes: 3   Popularity: 1.43
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
This tip is about creating a cursor from an icon
Create a service [Tip/Trick]
Posted: 11 Jan 2011   Updated: 15 Jan 2011   Rating: 2.60/5    Votes: 5   Popularity: 1.40
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
This tip shows how to create a service
Rectangle Tiling Algorithm [Tip/Trick]
Posted: 23 Jan 2011   Updated: 23 Jan 2011   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
A useful algorithm to divide a rectangular area into rectangular subregions. Good for tiling windows in a given area
Create bitmap from pixels [Tip/Trick]
Posted: 25 Jan 2011   Updated: 25 Jan 2011   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 7   Downloaded: 0
Create a bitmap from an array of pixels
Load a 256 color bitmap properly into an imagelist [Tip/Trick]
Posted: 1 Feb 2011   Updated: 2 Feb 2011   Rating: 4.80/5    Votes: 5   Popularity: 3.32
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
This tip shows the technique of loading a 256 color bitmap into an image list
Prevent Subversion from doing automatic merges [Tip/Trick]
Posted: 13 Feb 2011   Updated: 14 Feb 2011   Rating: 4.50/5    Votes: 4   Popularity: 2.61
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
This tip shows how to prevent Subversion (a version/source control tool) from doing automatic merges
Simulate a keystroke in windows [Tip/Trick]
Posted: 13 Feb 2011   Updated: 22 Feb 2011   Rating: 3.73/5    Votes: 15   Popularity: 4.70
Licence: The Code Project Open License (CPOL)      Bookmarked: 7   Downloaded: 0
This tip shows how to simulate a key stroke in windows environment
A very basic alpha blend algorithm [Tip/Trick]
Posted: 10 Apr 2011   Updated: 19 Apr 2011   Rating: 4.86/5    Votes: 7   Popularity: 4.08
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
SledgeHammer didn't help, so I had to do it myself... here it is again - a super fast improved algorithm compared to the previous one and with no setpixel and getpixel :)void AlphaBlend(CDC* pDC, int xDest, int yDest, int nDestWidth, int nDestHeight, CDC* pSrcDC, int xSrc, int ySrc, BYTE...
A very basic alpha blend algorithm [Tip/Trick]
Posted: 4 Apr 2011   Updated: 19 Apr 2011   Rating: 3.06/5    Votes: 17   Popularity: 3.61
Licence: The Code Project Open License (CPOL)      Bookmarked: 16   Downloaded: 0
A simple implementation of alpha blending technique displaying the basic mechanism behind it
How to load a view in maximized mode by default in MFC [Tip/Trick]
Posted: 6 Jun 2011   Updated: 13 Jun 2011   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Addresses the issue of opening a view in maximized mode the proper way in MFC.
Link to create a dll in C# [Tip/Trick]
Posted: 23 Jun 2011   Updated: 23 Jun 2011   Rating: 3.40/5    Votes: 5   Popularity: 2.10
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
Provides a useful link to look at how to create a dll in C#
How to implement a resizable property sheet class that contains a menu bar in Visual C++ 6.0 [Tip/Trick]
Posted: 21 Jun 2011   Updated: 25 Jun 2011   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Link to How to implement a resizable property sheet class that contains a menu bar in Visual C++ 6.0
Creating delegate from a function pointer [Tip/Trick]
Posted: 26 Jun 2011   Updated: 26 Jun 2011   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
This tip shows you how to create a delegate from a C++ function pointer
View the current library link order in a VC project [Tip/Trick]
Posted: 27 Jun 2011   Updated: 29 Jun 2011   Rating: 4.83/5    Votes: 6   Popularity: 3.89
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Shows how to view the current library link order in a VC project
Passing a const character * as a template argument [Tip/Trick]
Posted: 29 Jun 2011   Updated: 29 Jun 2011   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
This tip shows you how to pass a const char* or const wchar_t* as a template argument
Provide Command UI support for menu in a CDialog/CPropertySheet [Tip/Trick]
Posted: 6 Jul 2011   Updated: 6 Jul 2011   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Shows how to enable invoking of the OnUpdateCmdUI(...) in a dialog or property sheet when a menu bar item is pulled down to show popup menu
All about owned windows [Tip/Trick]
Posted: 6 Jul 2011   Updated: 6 Jul 2011   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
This tip, taken from MSDN tells the basic of ownership in windows.
convert a win32 rc file to XML [Tip/Trick]
Posted: 20 Jul 2011   Updated: 20 Jul 2011   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
this tip tells about a tool that converts a win32 rc file to XML
Query for running total in SQL Server [Tip/Trick]
Posted: 13 Feb 2011   Updated: 31 Aug 2011   Rating: 3.33/5    Votes: 6   Popularity: 2.33
Licence: The Code Project Open License (CPOL)      Bookmarked: 5   Downloaded: 0
Calculate running total or cumulative sum from a table in a SQL Server database.
CTRL+ I is received as TAB in the OnChar event of a window [Tip/Trick]
Posted: 13 Sep 2011   Updated: 15 Sep 2011   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
This is not so much of a trick, just a little tip about how CTRL+I is interpretated in a window
Convert Dialog Resource Units to Pixels [Tip/Trick]
Posted: 12 Sep 2011   Updated: 15 Sep 2011   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
This tip shows you how to convert the dimension values in the .rc file of a dialog into pixels
Declare a reference for a two dimensional array without typecasting [Tip/Trick]
Posted: 29 Nov 2011   Updated: 25 Dec 2011   Rating: 4.67/5    Votes: 3   Popularity: 2.15
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
This not so useful tip tells you how to declare a reference for a two dimensional array without needing to use typecasting.
Replace one color with another in the bitmap of a given device context [Tip/Trick]
Posted: 5 Feb 2012   Updated: 6 Feb 2012   Rating: 4.80/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Given a device context, replace a color (clrColorReplace) in a rectangular region of the device context with another color (clrColorFill)
Creating and Using Mutex Objects [Tip/Trick]
Posted: 19 Feb 2012   Updated: 19 Feb 2012   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
This article shows the use of mutex's with explanations (Copied from MSDN - may prove convenient for some)

Mukit, Ataul
Chief Technology Officer Rational Technologies
Bangladesh Bangladesh
Member
You don't learn patterns, you just code it.


Advertise | Privacy | Mobile
Web04 | 2.6.130516.1 | Last Updated 19 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid